DSatishchandra commited on
Commit
af135f6
·
verified ·
1 Parent(s): b3f84ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -52,10 +52,11 @@ def predict(video_file):
52
 
53
  iface = gr.Interface(
54
  fn=predict,
55
- inputs=gr.Video(), # No 'type' param in Gradio v4+
56
- outputs=gr.Text(),
57
  title="Smart LBW Classifier",
58
- description="Upload a cricket video. The AI model will predict whether it's an LBW or not."
59
  )
60
 
 
61
  iface.launch()
 
52
 
53
  iface = gr.Interface(
54
  fn=predict,
55
+ inputs=gr.Video(),
56
+ outputs=gr.Video(), # ← return annotated video
57
  title="Smart LBW Classifier",
58
+ description="Upload a cricket video. The model will analyze the frames and overlay the LBW prediction."
59
  )
60
 
61
+
62
  iface.launch()