Spaces:
Runtime error
Runtime error
IbrahimHasani
commited on
Commit
·
e30440b
1
Parent(s):
46ccfa6
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ video_folder = "Action Detection Samples"
|
|
115 |
video_files = [os.path.join(video_folder, file) for file in os.listdir(video_folder) if file.endswith('.mp4')] # considering only mp4 files
|
116 |
|
117 |
# Create examples: assuming every video is about 'dancing'
|
118 |
-
examples = [[video, "taking a shot"] for video in video_files]
|
119 |
|
120 |
iface = gr.Interface(
|
121 |
fn=model_interface,
|
@@ -132,7 +132,7 @@ iface = gr.Interface(
|
|
132 |
title="Engagify's Advanced Image Recognition Suite",
|
133 |
description="[[V0.5.1] Video Action Recognition - Copyright Engajify 2023] [Author: Ibrahim Ali] [Method: XCLIP ZERO SHOT / SAMPLED FRAMES = 32]",
|
134 |
live=False,
|
135 |
-
examples=examples # Add examples to the interface
|
136 |
)
|
137 |
|
138 |
iface.launch()
|
|
|
115 |
video_files = [os.path.join(video_folder, file) for file in os.listdir(video_folder) if file.endswith('.mp4')] # considering only mp4 files
|
116 |
|
117 |
# Create examples: assuming every video is about 'dancing'
|
118 |
+
#examples = [[video, "taking a shot"] for video in video_files]
|
119 |
|
120 |
iface = gr.Interface(
|
121 |
fn=model_interface,
|
|
|
132 |
title="Engagify's Advanced Image Recognition Suite",
|
133 |
description="[[V0.5.1] Video Action Recognition - Copyright Engajify 2023] [Author: Ibrahim Ali] [Method: XCLIP ZERO SHOT / SAMPLED FRAMES = 32]",
|
134 |
live=False,
|
135 |
+
#examples=examples # Add examples to the interface
|
136 |
)
|
137 |
|
138 |
iface.launch()
|