Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -88,15 +88,7 @@ with gr.Blocks(css=css) as demo:
|
|
88 |
with gr.Column():
|
89 |
result = gr.Image(label="Result", show_label=False, interactive=False)
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
gr.on(
|
94 |
-
triggers=[run_button.click, prompt.submit],
|
95 |
-
fn = infer,
|
96 |
-
inputs = [input_image, prompt, seed, randomize_seed, guidance_scale],
|
97 |
-
outputs = [result, seed]
|
98 |
-
)
|
99 |
-
gr.Examples(
|
100 |
examples=[
|
101 |
["./assets/5_before.png", "sunset over sea lighting coming from the top right part of the photo", 0, True, 2.5],
|
102 |
["./assets/3_before.png", "sci-fi RGB glowing, studio lighting",0, True,2.5],
|
@@ -107,5 +99,13 @@ with gr.Blocks(css=css) as demo:
|
|
107 |
fn=infer,
|
108 |
cache_examples="lazy"
|
109 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
demo.launch()
|
|
|
88 |
with gr.Column():
|
89 |
result = gr.Image(label="Result", show_label=False, interactive=False)
|
90 |
|
91 |
+
gr.Examples(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
examples=[
|
93 |
["./assets/5_before.png", "sunset over sea lighting coming from the top right part of the photo", 0, True, 2.5],
|
94 |
["./assets/3_before.png", "sci-fi RGB glowing, studio lighting",0, True,2.5],
|
|
|
99 |
fn=infer,
|
100 |
cache_examples="lazy"
|
101 |
)
|
102 |
+
|
103 |
+
gr.on(
|
104 |
+
triggers=[run_button.click, prompt.submit],
|
105 |
+
fn = infer,
|
106 |
+
inputs = [input_image, prompt, seed, randomize_seed, guidance_scale],
|
107 |
+
outputs = [result, seed]
|
108 |
+
)
|
109 |
+
|
110 |
|
111 |
demo.launch()
|