yuragoithf commited on
Commit
275ca05
1 Parent(s): 28f91bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def fig2img(fig):
83
 
84
  description = """Object Detection"""
85
 
86
- image_in = gr.components.Image()
87
  image_out = gr.components.Image()
88
  prob_threshold_slider = gr.components.Slider(
89
  minimum=0, maximum=1.0, step=0.01, value=0.7, label="Probability Threshold"
@@ -98,5 +98,6 @@ Iface = gr.Interface(
98
  inputs=[image_in, prob_threshold_slider, classes_to_show],
99
  outputs=image_out,
100
  title="Object Detection",
 
101
  description=description,
102
  ).launch()
 
83
 
84
  description = """Object Detection"""
85
 
86
+ image_in = gr.components.Image(label="Upload an image")
87
  image_out = gr.components.Image()
88
  prob_threshold_slider = gr.components.Slider(
89
  minimum=0, maximum=1.0, step=0.01, value=0.7, label="Probability Threshold"
 
98
  inputs=[image_in, prob_threshold_slider, classes_to_show],
99
  outputs=image_out,
100
  title="Object Detection",
101
+ examples=["CTH.png"]
102
  description=description,
103
  ).launch()