Shad0ws commited on
Commit
b537969
1 Parent(s): 68b4f36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="auto", 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)
 
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)