LPX55 commited on
Commit
8a3f635
·
verified ·
1 Parent(s): e077442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -93,11 +93,11 @@ image = gr.Image(label="Image to Analyze", sources=['upload'], type='pil') # En
93
  confidence_slider = gr.Slider(0.0, 1.0, value=0.5, step=0.01, label="Confidence Threshold")
94
  label = gr.JSON(label="Model Predictions")
95
 
96
- # Launch the interface with queuing enabled
97
  iface = gr.Interface(
98
  fn=predict_image,
99
  inputs=[image, confidence_slider],
100
  outputs=label,
101
  title="AI Generated Classification"
102
  )
103
- iface.launch(queue=True)
 
93
  confidence_slider = gr.Slider(0.0, 1.0, value=0.5, step=0.01, label="Confidence Threshold")
94
  label = gr.JSON(label="Model Predictions")
95
 
96
+ # Launch the interface
97
  iface = gr.Interface(
98
  fn=predict_image,
99
  inputs=[image, confidence_slider],
100
  outputs=label,
101
  title="AI Generated Classification"
102
  )
103
+ iface.launch()