Spaces:
Running
on
Zero
Running
on
Zero
PommesPeter
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -522,7 +522,6 @@ def main():
|
|
522 |
)
|
523 |
with gr.Row():
|
524 |
submit_btn = gr.Button("Submit", variant="primary")
|
525 |
-
stop_btn = gr.Button("Stop", variant="stop")
|
526 |
with gr.Column():
|
527 |
output_img = gr.Image(
|
528 |
label="Lumina Generated image",
|
@@ -604,7 +603,7 @@ def main():
|
|
604 |
raise RuntimeError("Model failed to generate the image.")
|
605 |
return result
|
606 |
|
607 |
-
|
608 |
on_submit,
|
609 |
[
|
610 |
cap,
|
|
|
522 |
)
|
523 |
with gr.Row():
|
524 |
submit_btn = gr.Button("Submit", variant="primary")
|
|
|
525 |
with gr.Column():
|
526 |
output_img = gr.Image(
|
527 |
label="Lumina Generated image",
|
|
|
603 |
raise RuntimeError("Model failed to generate the image.")
|
604 |
return result
|
605 |
|
606 |
+
submit_btn.click(
|
607 |
on_submit,
|
608 |
[
|
609 |
cap,
|