jschwab21 commited on
Commit
dcb53fc
·
verified ·
1 Parent(s): 2e9b5d5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
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()