Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,8 @@ def generate_video(prompt, seed, image=None):
|
|
58 |
export_to_video(output, video_out_file, fps=24)
|
59 |
return video_out_file, kwargs
|
60 |
|
61 |
-
def create_gradio_interface():
|
62 |
-
|
63 |
with gr.Row():
|
64 |
image = gr.Image(label="Upload Image", type="filepath")
|
65 |
prompt = gr.Textbox(label="Input Prompt")
|
@@ -72,7 +72,7 @@ def create_gradio_interface():
|
|
72 |
inputs=[prompt, seed, image],
|
73 |
outputs=[output_video, output_params],
|
74 |
)
|
75 |
-
return demo
|
76 |
|
77 |
#init_predictor()
|
78 |
|
@@ -80,5 +80,5 @@ if __name__ == "__main__":
|
|
80 |
#import multiprocessing
|
81 |
#multiprocessing.freeze_support()
|
82 |
init_predictor()
|
83 |
-
demo = create_gradio_interface()
|
84 |
demo.launch()
|
|
|
58 |
export_to_video(output, video_out_file, fps=24)
|
59 |
return video_out_file, kwargs
|
60 |
|
61 |
+
#def create_gradio_interface():
|
62 |
+
with gr.Blocks() as demo:
|
63 |
with gr.Row():
|
64 |
image = gr.Image(label="Upload Image", type="filepath")
|
65 |
prompt = gr.Textbox(label="Input Prompt")
|
|
|
72 |
inputs=[prompt, seed, image],
|
73 |
outputs=[output_video, output_params],
|
74 |
)
|
75 |
+
# return demo
|
76 |
|
77 |
#init_predictor()
|
78 |
|
|
|
80 |
#import multiprocessing
|
81 |
#multiprocessing.freeze_support()
|
82 |
init_predictor()
|
83 |
+
#demo = create_gradio_interface()
|
84 |
demo.launch()
|