Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,15 +94,15 @@ def sequence_prediction(video_file):
|
|
| 94 |
|
| 95 |
return predicted_label
|
| 96 |
example_list=[
|
| 97 |
-
["video1.
|
| 98 |
-
["video2.
|
| 99 |
]
|
| 100 |
# Gradio interface
|
| 101 |
iface = gr.Interface(
|
| 102 |
fn=sequence_prediction,
|
| 103 |
inputs=gr.Video(label="Upload a video file"),
|
| 104 |
outputs="text",
|
| 105 |
-
|
| 106 |
)
|
| 107 |
|
| 108 |
# Launch the Gradio app
|
|
|
|
| 94 |
|
| 95 |
return predicted_label
|
| 96 |
example_list=[
|
| 97 |
+
["video1.mp4"],
|
| 98 |
+
["video2.mp4"],
|
| 99 |
]
|
| 100 |
# Gradio interface
|
| 101 |
iface = gr.Interface(
|
| 102 |
fn=sequence_prediction,
|
| 103 |
inputs=gr.Video(label="Upload a video file"),
|
| 104 |
outputs="text",
|
| 105 |
+
examples=example_list,
|
| 106 |
)
|
| 107 |
|
| 108 |
# Launch the Gradio app
|