jarif commited on
Commit
0e92649
·
verified ·
1 Parent(s): 4e80b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -76,11 +76,7 @@ def predict_video(video):
76
 
77
  iface = gr.Interface(
78
  fn=predict_video,
79
- inputs=gr.Video(
80
- label="Upload Video",
81
- format="mp4",
82
- type="filepath"
83
- ),
84
  outputs=gr.Textbox(label="Top 3 Predictions"),
85
  title="Video Action Recognition",
86
  description="Upload a video to classify the action being performed. The model will return the top 3 predictions.",
@@ -95,7 +91,6 @@ iface = gr.Interface(
95
  if __name__ == "__main__":
96
  iface.launch(
97
  debug=False,
98
- share=False,
99
  server_name="0.0.0.0",
100
  server_port=7860,
101
  ssr=False
 
76
 
77
  iface = gr.Interface(
78
  fn=predict_video,
79
+ inputs=gr.Video(label="Upload Video"),
 
 
 
 
80
  outputs=gr.Textbox(label="Top 3 Predictions"),
81
  title="Video Action Recognition",
82
  description="Upload a video to classify the action being performed. The model will return the top 3 predictions.",
 
91
  if __name__ == "__main__":
92
  iface.launch(
93
  debug=False,
 
94
  server_name="0.0.0.0",
95
  server_port=7860,
96
  ssr=False