bensonsantos commited on
Commit
c6efeaf
·
1 Parent(s): 317569a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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="Input the image:")
36
- inputs = gr.inputs.Image(type="numpy", label="Estimated crowd density:")
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)