Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|