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