Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,9 +55,9 @@ with gradio.Blocks() as demo:
|
|
| 55 |
|
| 56 |
with gradio.Row():
|
| 57 |
# Image upload or webcam
|
| 58 |
-
image_in =
|
| 59 |
|
| 60 |
-
threshold =
|
| 61 |
0.0, 1.0, value=0.2, step=0.05, label="Confidence threshold"
|
| 62 |
)
|
| 63 |
|
|
|
|
| 55 |
|
| 56 |
with gradio.Row():
|
| 57 |
# Image upload or webcam
|
| 58 |
+
image_in = gradio.Image(type="pil", label="Upload image", sources=["upload", "webcam"])
|
| 59 |
|
| 60 |
+
threshold = gradio.Slider(
|
| 61 |
0.0, 1.0, value=0.2, step=0.05, label="Confidence threshold"
|
| 62 |
)
|
| 63 |
|