kasper-boy commited on
Commit
bd32079
·
verified ·
1 Parent(s): 8c5514e

Update app.py

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