brjathu commited on
Commit
025c216
1 Parent(s): 88994ba

Adding HF files

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +2 -2
.gitignore CHANGED
@@ -143,3 +143,4 @@ dmypy.json
143
  .pyre/
144
  /checkpoints/
145
  # /data/
 
 
143
  .pyre/
144
  /checkpoints/
145
  # /data/
146
+ assets/
app.py CHANGED
@@ -141,11 +141,11 @@ with gr.Blocks(title="4DHumans", css=".gradio-container") as demo:
141
  gr.HTML("""<br/>""")
142
 
143
  with gr.Row():
144
- threshold = gr.Slider(0, 1.0, value=0.8, label='Detection Threshold')
145
  send_btn = gr.Button("Infer")
146
  send_btn.click(fn=infer, inputs=[input_image, threshold], outputs=[output_image])
147
 
148
- # gr.Examples(['samples/img1.jpg', 'samples/img2.png', 'samples/img3.jpg', 'samples/img4.jpg'], inputs=input_image)
149
 
150
  gr.HTML("""</ul>""")
151
 
 
141
  gr.HTML("""<br/>""")
142
 
143
  with gr.Row():
144
+ threshold = gr.Slider(0, 1.0, value=0.6, label='Detection Threshold')
145
  send_btn = gr.Button("Infer")
146
  send_btn.click(fn=infer, inputs=[input_image, threshold], outputs=[output_image])
147
 
148
+ gr.Examples([['assets/test1.png', 0.6], ['assets/test2.png', 0.5]], inputs=[input_image, threshold])
149
 
150
  gr.HTML("""</ul>""")
151