yuragoithf commited on
Commit
66e6982
·
1 Parent(s): c46f212

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -85,11 +85,12 @@ def fig2img(fig):
85
  description = """Upload an image and get the predicted classes"""
86
  title = """Object Detection"""
87
 
88
- image_in = gr.components.Image(label="Upload an image")
89
- image_out = gr.components.Image()
90
  prob_threshold_slider = gr.components.Slider(
91
  minimum=0, maximum=1.0, step=0.01, value=0.7, label="Probability Threshold"
92
  )
 
 
 
93
 
94
  classes_to_show = gr.components.Textbox(
95
  placeholder="e.g. car, dog",
@@ -103,4 +104,5 @@ gr.Interface(fn=model_inference,
103
  outputs=image_out,
104
  title=title,
105
  description=description,
 
106
  ).launch()
 
85
  description = """Upload an image and get the predicted classes"""
86
  title = """Object Detection"""
87
 
 
 
88
  prob_threshold_slider = gr.components.Slider(
89
  minimum=0, maximum=1.0, step=0.01, value=0.7, label="Probability Threshold"
90
  )
91
+ image_in = gr.components.Image(label="Upload an image")
92
+ image_out = gr.components.Image()
93
+
94
 
95
  classes_to_show = gr.components.Textbox(
96
  placeholder="e.g. car, dog",
 
104
  outputs=image_out,
105
  title=title,
106
  description=description,
107
+ examples=["CTH.png", "carplane.webp"]
108
  ).launch()