Spaces:
Running
Running
comdoleger
commited on
Commit
•
cf91b68
1
Parent(s):
19386ca
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ api = os.getenv("FAI_API")
|
|
17 |
rmbgkey = os.getenv("RMBGKEY")
|
18 |
|
19 |
#fore, prompt, intensity, mode, refprompt, isrmbg
|
20 |
-
|
21 |
[
|
22 |
"examples/in1.png",
|
23 |
"beautiful woman, cinematic lighting",
|
@@ -367,9 +367,9 @@ with block:
|
|
367 |
imgholder = gr.Image(visible=False, label='Result')
|
368 |
gr.Examples(
|
369 |
fn=lambda *args: [args[-1]],
|
370 |
-
examples=
|
371 |
inputs=[
|
372 |
-
fore, prompt, intensity, mode, refprompt, isrmbg,
|
373 |
],
|
374 |
outputs=[result_gallery],
|
375 |
run_on_click=True, examples_per_page=1024
|
|
|
17 |
rmbgkey = os.getenv("RMBGKEY")
|
18 |
|
19 |
#fore, prompt, intensity, mode, refprompt, isrmbg
|
20 |
+
example_list = [
|
21 |
[
|
22 |
"examples/in1.png",
|
23 |
"beautiful woman, cinematic lighting",
|
|
|
367 |
imgholder = gr.Image(visible=False, label='Result')
|
368 |
gr.Examples(
|
369 |
fn=lambda *args: [args[-1]],
|
370 |
+
examples=example_list,
|
371 |
inputs=[
|
372 |
+
fore, prompt, intensity, mode, refprompt, isrmbg, out
|
373 |
],
|
374 |
outputs=[result_gallery],
|
375 |
run_on_click=True, examples_per_page=1024
|