Spaces:
Running
Running
Commit
·
9d2876b
1
Parent(s):
0ce60d0
Fix video input
Browse files
app.py
CHANGED
@@ -149,7 +149,8 @@ with gr.Blocks() as demo:
|
|
149 |
gr.Markdown("Upload a video file and either type a custom prompt or select one of the sample prompts. Then click **Process Video** to generate the chapter breakdown.")
|
150 |
|
151 |
with gr.Row():
|
152 |
-
|
|
|
153 |
with gr.Row():
|
154 |
custom_prompt_input = gr.Textbox(label="Custom Prompt", placeholder="Enter custom prompt (optional)...", lines=2)
|
155 |
with gr.Row():
|
@@ -160,8 +161,5 @@ with gr.Blocks() as demo:
|
|
160 |
|
161 |
run_button.click(fn=process_video, inputs=[video_input, custom_prompt_input, sample_prompt_input], outputs=output_text)
|
162 |
|
163 |
-
# -------------------------------------------------
|
164 |
-
# 7. Launch the App
|
165 |
-
# -------------------------------------------------
|
166 |
if __name__ == "__main__":
|
167 |
demo.launch()
|
|
|
149 |
gr.Markdown("Upload a video file and either type a custom prompt or select one of the sample prompts. Then click **Process Video** to generate the chapter breakdown.")
|
150 |
|
151 |
with gr.Row():
|
152 |
+
# Removed the source parameter here
|
153 |
+
video_input = gr.Video(label="Upload Video")
|
154 |
with gr.Row():
|
155 |
custom_prompt_input = gr.Textbox(label="Custom Prompt", placeholder="Enter custom prompt (optional)...", lines=2)
|
156 |
with gr.Row():
|
|
|
161 |
|
162 |
run_button.click(fn=process_video, inputs=[video_input, custom_prompt_input, sample_prompt_input], outputs=output_text)
|
163 |
|
|
|
|
|
|
|
164 |
if __name__ == "__main__":
|
165 |
demo.launch()
|