yuragoithf commited on
Commit
08172fe
·
1 Parent(s): 0d5ebdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ title = """Object Detection"""
78
 
79
  # Create examples list from "examples/" directory
80
  # example_list = [["examples/" + example] for example in os.listdir("examples")]
81
- example_list = [["carplane.webp"], ["CTH.png"]]
82
 
83
  image_in = gr.components.Image(label="Upload an image")
84
  image_out = gr.components.Image()
@@ -87,7 +87,7 @@ prob_threshold_slider = gr.components.Slider(minimum=0, maximum=1.0, step=0.01,
87
  inputs = [image_in, prob_threshold_slider, classes_to_show]
88
 
89
  gr.Interface(fn=model_inference,
90
- inputs=inputs,
91
  outputs=image_out,
92
  title=title,
93
  description=description,
 
78
 
79
  # Create examples list from "examples/" directory
80
  # example_list = [["examples/" + example] for example in os.listdir("examples")]
81
+ example_list = [["carplane.webp"]]
82
 
83
  image_in = gr.components.Image(label="Upload an image")
84
  image_out = gr.components.Image()
 
87
  inputs = [image_in, prob_threshold_slider, classes_to_show]
88
 
89
  gr.Interface(fn=model_inference,
90
+ inputs=[[gr.Image()]],
91
  outputs=image_out,
92
  title=title,
93
  description=description,