kasper-boy commited on
Commit
66136c9
1 Parent(s): 744022c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def object_detection(image, confidence_threshold):
60
  # Define the Gradio interface
61
  demo = gr.Interface(
62
  fn=object_detection,
63
- inputs=[gr.Image(label="Upload an Image"), gr.Slider(minimum=0.0, maximum=1.0, label="Confidence Threshold", default=0.5)],
64
  outputs=[gr.Image(label="Detected Objects"), gr.Textbox(label="Detected Objects List")],
65
  title="Object Detection with DETR (ResNet-101)",
66
  description="Upload an image and get object detection results using the DETR model with a ResNet-101 backbone."
 
60
  # Define the Gradio interface
61
  demo = gr.Interface(
62
  fn=object_detection,
63
+ inputs=[gr.Image(label="Upload an Image"), gr.Slider(minimum=0.0, maximum=1.0, label="Confidence Threshold")],
64
  outputs=[gr.Image(label="Detected Objects"), gr.Textbox(label="Detected Objects List")],
65
  title="Object Detection with DETR (ResNet-101)",
66
  description="Upload an image and get object detection results using the DETR model with a ResNet-101 backbone."