Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -83,12 +83,21 @@ def process_video_interface():
|
|
83 |
description="Select a video file from 'videos' folder, add text, and process.",
|
84 |
)
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
)
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
description="Select a video file from 'videos' folder, add text, and process.",
|
84 |
)
|
85 |
|
86 |
+
# Main app definition
|
87 |
+
with gr.Blocks(theme=gr.themes.Soft(primary_hue="red", secondary_hue="pink")) as demo:
|
88 |
+
with gr.Tabs():
|
89 |
+
# Chat Ta
|
90 |
+
with gr.TabItem("Video Processing"):
|
91 |
+
text_input = gr.Textbox(lines=5, label="Text (8 words max per line)")
|
92 |
+
process_button = gr.Button("Process Video")
|
93 |
+
video_output = gr.Video(label="Processed Video")
|
94 |
+
|
95 |
+
process_button.click(
|
96 |
+
fn=process_video,
|
97 |
+
inputs=text_input,
|
98 |
+
outputs=video_output,
|
99 |
+
)
|
100 |
+
|
101 |
+
# Launch the Gradio interface
|
102 |
+
if __name__ == "__main__":
|
103 |
+
demo.launch()
|