Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def crowd(img):
|
|
| 43 |
pred = int(pred.round())
|
| 44 |
return pred
|
| 45 |
|
| 46 |
-
outputs = gr.outputs.Textbox(type="
|
| 47 |
inputs = gr.inputs.Image(type="numpy", label="Input the image here:")
|
| 48 |
|
| 49 |
gr.Interface(fn=crowd, inputs=inputs, outputs=outputs, allow_flagging="never", examples=["Example_1.jpg", "Example_3.jpg", "Example_2.jpg"], title = "Crowd Counting Model", description = "Interface").launch(inbrowser=True)
|
|
|
|
| 43 |
pred = int(pred.round())
|
| 44 |
return pred
|
| 45 |
|
| 46 |
+
outputs = gr.outputs.Textbox(type="text", label="Estimated crowd density:")
|
| 47 |
inputs = gr.inputs.Image(type="numpy", label="Input the image here:")
|
| 48 |
|
| 49 |
gr.Interface(fn=crowd, inputs=inputs, outputs=outputs, allow_flagging="never", examples=["Example_1.jpg", "Example_3.jpg", "Example_2.jpg"], title = "Crowd Counting Model", description = "Interface").launch(inbrowser=True)
|