aje6 commited on
Commit
ac87b40
·
verified ·
1 Parent(s): 8b87f22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -260,7 +260,7 @@ def predict(image):
260
  # Gradio interface
261
  demo = gr.Interface(
262
  fn=predict,
263
- inputs=gr.Image(sources=["webcam"], type="pil"), # Accepts image input
264
  outputs="image" # Customize based on your output format
265
  )
266
 
 
260
  # Gradio interface
261
  demo = gr.Interface(
262
  fn=predict,
263
+ inputs=gr.Image(sources=["webcam"], type="numpy"), # Accepts image input
264
  outputs="image" # Customize based on your output format
265
  )
266