Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -50,12 +50,13 @@ def infer(prompt,video_in):
|
|
50 |
|
51 |
return final_vid
|
52 |
|
53 |
-
|
54 |
-
|
|
|
55 |
prompt = gr.Textbox(placeholder="enter prompt")
|
56 |
video_inp = gr.Video(source="upload", type="filepath")
|
57 |
video_out = gr.Video()
|
58 |
-
|
59 |
submit_btn = gr.Button("go")
|
60 |
|
61 |
inputs = [
|
@@ -63,7 +64,7 @@ with gr.Blocks() as demo:
|
|
63 |
video_inp
|
64 |
]
|
65 |
outputs = [video_out]
|
66 |
-
|
67 |
submit_btn.click(infer, inputs, outputs)
|
68 |
|
69 |
-
demo.launch().queue()
|
|
|
50 |
|
51 |
return final_vid
|
52 |
|
53 |
+
|
54 |
+
with gr.Blocks(css='style.css') as demo:
|
55 |
+
with gr.Column(elem_id="col-container"):
|
56 |
prompt = gr.Textbox(placeholder="enter prompt")
|
57 |
video_inp = gr.Video(source="upload", type="filepath")
|
58 |
video_out = gr.Video()
|
59 |
+
|
60 |
submit_btn = gr.Button("go")
|
61 |
|
62 |
inputs = [
|
|
|
64 |
video_inp
|
65 |
]
|
66 |
outputs = [video_out]
|
67 |
+
|
68 |
submit_btn.click(infer, inputs, outputs)
|
69 |
|
70 |
+
demo.launch().queue(max_size=12)
|