Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -83,19 +83,15 @@ chat_interface = gr.ChatInterface(
|
|
83 |
|
84 |
def process_video_interface():
|
85 |
text_input = gr.Textbox(lines=5, label="Text (8 words max per line)")
|
86 |
-
process_button = gr.Button("Process Video")
|
87 |
video_output = gr.Video(label="Processed Video")
|
88 |
|
89 |
-
def process_video_callback():
|
90 |
-
text = text_input.value
|
91 |
output_path = process_video(text)
|
92 |
video_output.value = output_path
|
93 |
|
94 |
-
process_button.click(process_video_callback)
|
95 |
-
|
96 |
return gr.Interface(
|
97 |
-
fn=
|
98 |
-
inputs=
|
99 |
outputs=video_output,
|
100 |
title="Video Processing",
|
101 |
description="Select a video file from 'videos' folder, add text, and process.",
|
|
|
83 |
|
84 |
def process_video_interface():
|
85 |
text_input = gr.Textbox(lines=5, label="Text (8 words max per line)")
|
|
|
86 |
video_output = gr.Video(label="Processed Video")
|
87 |
|
88 |
+
def process_video_callback(text):
|
|
|
89 |
output_path = process_video(text)
|
90 |
video_output.value = output_path
|
91 |
|
|
|
|
|
92 |
return gr.Interface(
|
93 |
+
fn=process_video_callback,
|
94 |
+
inputs=text_input,
|
95 |
outputs=video_output,
|
96 |
title="Video Processing",
|
97 |
description="Select a video file from 'videos' folder, add text, and process.",
|