Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -430,28 +430,22 @@ def ui():
|
|
430 |
result = []
|
431 |
result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
|
432 |
result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
433 |
demo.queue().launch()
|
434 |
|
435 |
-
|
436 |
-
gr.on(
|
437 |
-
triggers=[
|
438 |
-
run_button.click,
|
439 |
-
prompt.submit,
|
440 |
-
prompt2.submit
|
441 |
-
],
|
442 |
-
fn=handle,
|
443 |
-
inputs=[img,prompt,prompt2,motion],
|
444 |
-
outputs=result
|
445 |
-
)
|
446 |
|
447 |
-
|
448 |
os.chdir(os.path.abspath(os.path.dirname(__file__)))
|
449 |
-
|
450 |
ui()
|
451 |
-
events()
|
452 |
-
|
453 |
-
# entry
|
454 |
-
|
455 |
-
entry()
|
456 |
|
457 |
# end
|
|
|
430 |
result = []
|
431 |
result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
|
432 |
result.append(gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
|
433 |
+
gr.on(
|
434 |
+
triggers=[
|
435 |
+
run_button.click,
|
436 |
+
prompt.submit,
|
437 |
+
prompt2.submit
|
438 |
+
],
|
439 |
+
fn=handle,
|
440 |
+
inputs=[img,prompt,prompt2,motion],
|
441 |
+
outputs=result
|
442 |
+
)
|
443 |
demo.queue().launch()
|
444 |
|
445 |
+
# entry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
|
447 |
+
if __name__ == "__main__":
|
448 |
os.chdir(os.path.abspath(os.path.dirname(__file__)))
|
|
|
449 |
ui()
|
|
|
|
|
|
|
|
|
|
|
450 |
|
451 |
# end
|