Spaces:
Build error
Build error
Commit
·
c6efeaf
1
Parent(s):
317569a
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def crowd(img):
|
|
32 |
pred = int(pred.round())
|
33 |
return pred
|
34 |
|
35 |
-
outputs = gr.outputs.Textbox(type="auto", label="
|
36 |
-
inputs = gr.inputs.Image(type="numpy", label="
|
37 |
|
38 |
-
gr.Interface(fn=crowd, inputs=inputs, outputs=outputs, allow_flagging="never", examples=["IMG_5.jpg", "IMG_10.jpg"]).launch(inbrowser=True)
|
|
|
32 |
pred = int(pred.round())
|
33 |
return pred
|
34 |
|
35 |
+
outputs = gr.outputs.Textbox(type="auto", label="Estimated crowd density:")
|
36 |
+
inputs = gr.inputs.Image(type="numpy", label="Input the image here:")
|
37 |
|
38 |
+
gr.Interface(fn=crowd, inputs=inputs, outputs=outputs, allow_flagging="never", examples=["IMG_5.jpg", "IMG_10.jpg"], description = "CANNet Crowd Counting Model by Lui, Salzmann, and Fua. GitHub Repository of the model can be found in https://github.com/weizheliu/Context-Aware-Crowd-Counting").launch(inbrowser=True)
|