Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -149,8 +149,9 @@ with gr.Blocks() as demo:
|
|
149 |
elif not text and topic:
|
150 |
text = generate_script(topic)
|
151 |
image_size_dict = {"640x480": (640, 480), "800x600": (800, 600), "1024x768": (1024, 768)}
|
|
|
152 |
return process_text(text, movie_title, image_size_dict[image_size], use_diffusion, num_steps)
|
153 |
|
154 |
-
process_btn.click(handle_request, inputs=[text_input, movie_title_input, file_input, image_size_input, use_diffusion_input, num_steps_input], outputs=output_video)
|
155 |
|
156 |
demo.launch()
|
|
|
149 |
elif not text and topic:
|
150 |
text = generate_script(topic)
|
151 |
image_size_dict = {"640x480": (640, 480), "800x600": (800, 600), "1024x768": (1024, 768)}
|
152 |
+
|
153 |
return process_text(text, movie_title, image_size_dict[image_size], use_diffusion, num_steps)
|
154 |
|
155 |
+
process_btn.click(handle_request, inputs=[text_input, topic_input, movie_title_input, file_input, image_size_input, use_diffusion_input, num_steps_input], outputs=output_video)
|
156 |
|
157 |
demo.launch()
|