Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -320,7 +320,7 @@ def predict(image):
|
|
| 320 |
# Gradio interface
|
| 321 |
demo = gr.Interface(
|
| 322 |
fn=predict,
|
| 323 |
-
inputs=gr.Image(sources=["webcam"], type="
|
| 324 |
outputs="image" # Customize based on your output format
|
| 325 |
)
|
| 326 |
|
|
|
|
| 320 |
# Gradio interface
|
| 321 |
demo = gr.Interface(
|
| 322 |
fn=predict,
|
| 323 |
+
inputs=gr.Image(sources=["webcam"], type="pil"), # Accepts image input
|
| 324 |
outputs="image" # Customize based on your output format
|
| 325 |
)
|
| 326 |
|