Update app.py
Browse files
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
|
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(
|
|
|
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()
|