Update app.py
Browse files
app.py
CHANGED
@@ -182,25 +182,25 @@ with gr.Blocks(css=CSS, js=JS, theme="Nymbo/Nymbo_Theme") as demo:
|
|
182 |
)
|
183 |
output_res = gr.Image(label="Upscaled Image")
|
184 |
|
185 |
-
gr.on(
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
|
205 |
if name == "main":
|
206 |
demo.queue(api_open=False).launch(show_api=False, share=False)
|
|
|
182 |
)
|
183 |
output_res = gr.Image(label="Upscaled Image")
|
184 |
|
185 |
+
gr.on(
|
186 |
+
triggers=[
|
187 |
+
prompt.submit,
|
188 |
+
sendBtn.click,
|
189 |
+
],
|
190 |
+
fn=gen,
|
191 |
+
inputs=[
|
192 |
+
prompt,
|
193 |
+
lora_add,
|
194 |
+
lora_word,
|
195 |
+
width,
|
196 |
+
height,
|
197 |
+
scales,
|
198 |
+
steps,
|
199 |
+
seed,
|
200 |
+
upscale_factor
|
201 |
+
],
|
202 |
+
outputs=[img, seed, output_res]
|
203 |
+
)
|
204 |
|
205 |
if name == "main":
|
206 |
demo.queue(api_open=False).launch(show_api=False, share=False)
|