aje6 commited on
Commit
2e6c915
·
verified ·
1 Parent(s): 7d0861c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -239,7 +239,7 @@ def predict(image):
239
  # Gradio interface
240
  demo = gr.Interface(
241
  fn=predict,
242
- inputs=gr.Image(type="pil"), # Accepts image input
243
  outputs="image" # Customize based on your output format
244
  )
245
 
 
239
  # Gradio interface
240
  demo = gr.Interface(
241
  fn=predict,
242
+ inputs=gr.Image(sources=["webcam"], type="pil"), # Accepts image input
243
  outputs="image" # Customize based on your output format
244
  )
245