Spaces:
Running
Running
comdoleger
commited on
Commit
•
cd05370
1
Parent(s):
44f18bb
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ example_list = [
|
|
25 |
4.0,
|
26 |
"full",
|
27 |
"A transparent Bottle with a semi transparent purple liquide, studio light",
|
28 |
-
False
|
29 |
-
|
30 |
],
|
31 |
[
|
32 |
"examples/in3.png",
|
@@ -35,7 +35,7 @@ example_list = [
|
|
35 |
"full",
|
36 |
"A brown Pair of Shoes, vibrant, Shadow",
|
37 |
False,
|
38 |
-
|
39 |
],
|
40 |
[
|
41 |
"examples/in4.png",
|
@@ -44,7 +44,7 @@ example_list = [
|
|
44 |
"full",
|
45 |
"A transparent Bottle with a black cap and a semi transparent liquide, Sunset",
|
46 |
False,
|
47 |
-
|
48 |
],
|
49 |
[
|
50 |
"examples/in5.png",
|
@@ -53,7 +53,7 @@ example_list = [
|
|
53 |
"full",
|
54 |
"A glass perfume Bottle, with a yellow lequide and a black cap, sunset, transparent",
|
55 |
False,
|
56 |
-
|
57 |
],
|
58 |
[
|
59 |
"examples/in6.png",
|
@@ -62,7 +62,7 @@ example_list = [
|
|
62 |
"full",
|
63 |
"A light grey Sofa, studio light, shadows",
|
64 |
False,
|
65 |
-
|
66 |
],
|
67 |
[
|
68 |
"examples/in7.png",
|
@@ -71,7 +71,7 @@ example_list = [
|
|
71 |
"full",
|
72 |
"A light grey Car, vibrant, reflections",
|
73 |
False,
|
74 |
-
|
75 |
],
|
76 |
[
|
77 |
"examples/in2.png",
|
@@ -80,7 +80,7 @@ example_list = [
|
|
80 |
"full",
|
81 |
"white headphones, vibrant, colorful, ",
|
82 |
False,
|
83 |
-
|
84 |
]
|
85 |
]
|
86 |
|
@@ -407,18 +407,18 @@ with block:
|
|
407 |
<center><h2><a href="https://fotographer.ai/">🔗 Check Out our other Projects Here!</a></h2></center>""")
|
408 |
|
409 |
with gr.Row():
|
410 |
-
|
411 |
gr.Examples(
|
412 |
-
fn=
|
413 |
examples=example_list,
|
414 |
inputs=[
|
415 |
-
fore, prompt, intensity, mode, refprompt, isrmbg
|
416 |
],
|
417 |
outputs=[result_gallery],
|
418 |
run_on_click=False, examples_per_page=1024
|
419 |
|
420 |
)
|
421 |
-
|
422 |
with gr.Column():
|
423 |
dummy_image_for_outputs = gr.Image(visible=False, label='Result')
|
424 |
gr.Examples(
|
@@ -426,6 +426,8 @@ with block:
|
|
426 |
inputs=[dummy_image_for_outputs],
|
427 |
|
428 |
)
|
|
|
|
|
429 |
|
430 |
|
431 |
ins = [fore, prompt, intensity, mode, refprompt, isrmbg]
|
|
|
25 |
4.0,
|
26 |
"full",
|
27 |
"A transparent Bottle with a semi transparent purple liquide, studio light",
|
28 |
+
False,
|
29 |
+
"examples/out1.png"
|
30 |
],
|
31 |
[
|
32 |
"examples/in3.png",
|
|
|
35 |
"full",
|
36 |
"A brown Pair of Shoes, vibrant, Shadow",
|
37 |
False,
|
38 |
+
"examples/out3.png"
|
39 |
],
|
40 |
[
|
41 |
"examples/in4.png",
|
|
|
44 |
"full",
|
45 |
"A transparent Bottle with a black cap and a semi transparent liquide, Sunset",
|
46 |
False,
|
47 |
+
"examples/out4.png"
|
48 |
],
|
49 |
[
|
50 |
"examples/in5.png",
|
|
|
53 |
"full",
|
54 |
"A glass perfume Bottle, with a yellow lequide and a black cap, sunset, transparent",
|
55 |
False,
|
56 |
+
"examples/out5.png"
|
57 |
],
|
58 |
[
|
59 |
"examples/in6.png",
|
|
|
62 |
"full",
|
63 |
"A light grey Sofa, studio light, shadows",
|
64 |
False,
|
65 |
+
"examples/out6.png"
|
66 |
],
|
67 |
[
|
68 |
"examples/in7.png",
|
|
|
71 |
"full",
|
72 |
"A light grey Car, vibrant, reflections",
|
73 |
False,
|
74 |
+
"examples/out7.png"
|
75 |
],
|
76 |
[
|
77 |
"examples/in2.png",
|
|
|
80 |
"full",
|
81 |
"white headphones, vibrant, colorful, ",
|
82 |
False,
|
83 |
+
"examples/out2.png"
|
84 |
]
|
85 |
]
|
86 |
|
|
|
407 |
<center><h2><a href="https://fotographer.ai/">🔗 Check Out our other Projects Here!</a></h2></center>""")
|
408 |
|
409 |
with gr.Row():
|
410 |
+
dummy_image_for_outputs = gr.Image(visible=False, label='Result')
|
411 |
gr.Examples(
|
412 |
+
fn=lambda *args: [args[-1]],
|
413 |
examples=example_list,
|
414 |
inputs=[
|
415 |
+
fore, prompt, intensity, mode, refprompt, isrmbg, dummy_image_for_outputs
|
416 |
],
|
417 |
outputs=[result_gallery],
|
418 |
run_on_click=False, examples_per_page=1024
|
419 |
|
420 |
)
|
421 |
+
'''
|
422 |
with gr.Column():
|
423 |
dummy_image_for_outputs = gr.Image(visible=False, label='Result')
|
424 |
gr.Examples(
|
|
|
426 |
inputs=[dummy_image_for_outputs],
|
427 |
|
428 |
)
|
429 |
+
'''
|
430 |
+
|
431 |
|
432 |
|
433 |
ins = [fore, prompt, intensity, mode, refprompt, isrmbg]
|