Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from video_processing import process_video
|
3 |
+
|
4 |
+
# Define the Gradio interface
|
5 |
+
with gr.Blocks() as demo:
|
6 |
+
gr.Markdown("# My AI Video Processing App")
|
7 |
+
video_url = gr.Textbox(label="Video URL or Filepath")
|
8 |
+
description = gr.Textbox(label="Description of desired clip")
|
9 |
+
output = gr.Textbox(label="Output", interactive=False)
|
10 |
+
submit_button = gr.Button("Process Video")
|
11 |
+
submit_button.click(fn=process_video, inputs=[video_url, description], outputs=output)
|
12 |
+
|
13 |
+
# Launch the app
|
14 |
+
demo.launch()
|