Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -268,8 +268,6 @@ def get_output_video(text):
|
|
268 |
print("DEBUG: get_output_video function completed successfully.")
|
269 |
return 'result_final.mp4'
|
270 |
|
271 |
-
|
272 |
-
|
273 |
# Example text (can be changed by user in Gradio interface)
|
274 |
text = 'Once, there was a girl called Laura who went to the supermarket to buy the ingredients to make a cake. Because today is her birthday and her friends come to her house and help her to prepare the cake.'
|
275 |
|
@@ -284,10 +282,10 @@ with demo:
|
|
284 |
with gr.Row():
|
285 |
button_gen_video = gr.Button("Generate Video")
|
286 |
with gr.Column():
|
287 |
-
output_interpolation = gr.Video(label="Generated Video")
|
288 |
gr.Markdown("<h3>Future Works </h3>")
|
289 |
gr.Markdown("This program is a text-to-video AI software generating videos from any prompt! AI software to build an art gallery. The future version will use Dalle-2. For more info visit [ruslanmv.com](https://ruslanmv.com/) ")
|
290 |
button_gen_video.click(fn=get_output_video, inputs=input_start_text, outputs=output_interpolation)
|
291 |
|
292 |
# Launch the Gradio app
|
293 |
-
demo.launch(debug=True, share=True)
|
|
|
268 |
print("DEBUG: get_output_video function completed successfully.")
|
269 |
return 'result_final.mp4'
|
270 |
|
|
|
|
|
271 |
# Example text (can be changed by user in Gradio interface)
|
272 |
text = 'Once, there was a girl called Laura who went to the supermarket to buy the ingredients to make a cake. Because today is her birthday and her friends come to her house and help her to prepare the cake.'
|
273 |
|
|
|
282 |
with gr.Row():
|
283 |
button_gen_video = gr.Button("Generate Video")
|
284 |
with gr.Column():
|
285 |
+
output_interpolation = gr.Video(value="test.mp4", label="Generated Video") # Set default video
|
286 |
gr.Markdown("<h3>Future Works </h3>")
|
287 |
gr.Markdown("This program is a text-to-video AI software generating videos from any prompt! AI software to build an art gallery. The future version will use Dalle-2. For more info visit [ruslanmv.com](https://ruslanmv.com/) ")
|
288 |
button_gen_video.click(fn=get_output_video, inputs=input_start_text, outputs=output_interpolation)
|
289 |
|
290 |
# Launch the Gradio app
|
291 |
+
demo.launch(debug=True, share=True)
|