Update app.py
Browse files
app.py
CHANGED
@@ -75,11 +75,20 @@ def run(duration=180):
|
|
75 |
return "./output.mp4"
|
76 |
|
77 |
with gr.Blocks() as demo:
|
|
|
|
|
78 |
image = gr.Image()
|
79 |
-
button1 = gr.Button()
|
80 |
button1.click(fn=add_new_image,inputs=image)
|
81 |
-
button2 = gr.Button()
|
82 |
video = gr.Video()
|
83 |
button2.click(fn=run,outputs=video)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
demo.launch()
|
|
|
75 |
return "./output.mp4"
|
76 |
|
77 |
with gr.Blocks() as demo:
|
78 |
+
title = gr.Markdown("""# MuseV Image2Vid & Vid2Vid """)
|
79 |
+
subtitle1 = gr.Markdown("""Image2Vid""")
|
80 |
image = gr.Image()
|
81 |
+
button1 = gr.Button(value="Save Image")
|
82 |
button1.click(fn=add_new_image,inputs=image)
|
83 |
+
button2 = gr.Button(value="Generate Img2Vid")
|
84 |
video = gr.Video()
|
85 |
button2.click(fn=run,outputs=video)
|
86 |
+
subtitle2 = gr.Markdown("""Vid2Vid""")
|
87 |
+
video_in = gr.Video()
|
88 |
+
button2 = gr.Button(value="Generate Vid2Vid")
|
89 |
+
video_out = gr.Video()
|
90 |
+
button2.click(fn=run,outputs=video_out)
|
91 |
+
|
92 |
+
|
93 |
|
94 |
demo.launch()
|