Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -121,17 +121,19 @@ h3 {
|
|
121 |
}
|
122 |
"""
|
123 |
|
124 |
-
with gr.Blocks(
|
125 |
with gr.Column():
|
126 |
-
gr.
|
127 |
-
gr.
|
128 |
-
gr.
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
136 |
|
137 |
demo.launch()
|
|
|
121 |
}
|
122 |
"""
|
123 |
|
124 |
+
with gr.Blocks() as demo:
|
125 |
with gr.Column():
|
126 |
+
video_url = gr.Textbox(label="Video URL")
|
127 |
+
video_file = gr.File(label="Upload Video File")
|
128 |
+
description = gr.Textbox(label="Describe your clip")
|
129 |
+
submit_button = gr.Button("Process Video")
|
130 |
+
video_output = gr.Video(label="Processed Video")
|
131 |
+
download_output = gr.File(label="Download Processed Video")
|
132 |
+
|
133 |
+
submit_button.click(
|
134 |
+
fn=display_results,
|
135 |
+
inputs=[video_url, video_file, description],
|
136 |
+
outputs=[video_output, download_output]
|
137 |
+
)
|
138 |
|
139 |
demo.launch()
|