Spaces:
Runtime error
Runtime error
SaladSlayer00
commited on
Commit
•
939c610
1
Parent(s):
6b368fb
Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ def upload_to_s3(bucket_name, folder_name):
|
|
22 |
image_paths.append(file_path)
|
23 |
return image_paths
|
24 |
|
25 |
-
def process_video(uploaded_video,
|
26 |
try:
|
27 |
-
video_source =
|
28 |
if video_source is None:
|
29 |
return "No video file provided.", []
|
30 |
|
@@ -83,7 +83,7 @@ with gr.Blocks() as demo:
|
|
83 |
with gr.Row():
|
84 |
with gr.Column():
|
85 |
video = gr.File(label="Upload Your Video")
|
86 |
-
|
87 |
with gr.Column():
|
88 |
name = gr.Textbox(label="Name")
|
89 |
surname = gr.Textbox(label="Surname")
|
@@ -96,7 +96,7 @@ with gr.Blocks() as demo:
|
|
96 |
|
97 |
submit_button.click(
|
98 |
fn=process_video,
|
99 |
-
inputs=[video,
|
100 |
outputs=[gr.Text(label="Result"), gallery]
|
101 |
)
|
102 |
|
|
|
22 |
image_paths.append(file_path)
|
23 |
return image_paths
|
24 |
|
25 |
+
def process_video(uploaded_video, name, surname, interval_ms):
|
26 |
try:
|
27 |
+
video_source = uploaded_video
|
28 |
if video_source is None:
|
29 |
return "No video file provided.", []
|
30 |
|
|
|
83 |
with gr.Row():
|
84 |
with gr.Column():
|
85 |
video = gr.File(label="Upload Your Video")
|
86 |
+
|
87 |
with gr.Column():
|
88 |
name = gr.Textbox(label="Name")
|
89 |
surname = gr.Textbox(label="Surname")
|
|
|
96 |
|
97 |
submit_button.click(
|
98 |
fn=process_video,
|
99 |
+
inputs=[video, name, surname, interval],
|
100 |
outputs=[gr.Text(label="Result"), gallery]
|
101 |
)
|
102 |
|