SaladSlayer00 commited on
Commit
deeb0a3
1 Parent(s): 26d9a50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -78,7 +78,6 @@ def process_video(uploaded_video, name, surname, interval_ms):
78
  return f"An error occurred: {e}", []
79
 
80
 
81
- example_video_path = ["examples/vid.mp4"]
82
 
83
  # Gradio Interface
84
  with gr.Blocks() as demo:
@@ -88,7 +87,7 @@ with gr.Blocks() as demo:
88
  with gr.Row():
89
  with gr.Column():
90
  video = gr.File(label="Upload Your Video!")
91
- examples = example_video_path
92
  with gr.Column():
93
  name = gr.Textbox(label="Name")
94
  surname = gr.Textbox(label="Surname")
@@ -103,8 +102,7 @@ with gr.Blocks() as demo:
103
  submit_button.click(
104
  fn=process_video,
105
  inputs=[video, name, surname, interval],
106
- outputs=[gr.Text(label="Result"), gallery],
107
- examples = example_video_path
108
  )
109
 
110
  css = """
 
78
  return f"An error occurred: {e}", []
79
 
80
 
 
81
 
82
  # Gradio Interface
83
  with gr.Blocks() as demo:
 
87
  with gr.Row():
88
  with gr.Column():
89
  video = gr.File(label="Upload Your Video!")
90
+
91
  with gr.Column():
92
  name = gr.Textbox(label="Name")
93
  surname = gr.Textbox(label="Surname")
 
102
  submit_button.click(
103
  fn=process_video,
104
  inputs=[video, name, surname, interval],
105
+ outputs=[gr.Text(label="Result"), gallery]
 
106
  )
107
 
108
  css = """