Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def analyze_label(image, model):
|
|
47 |
return f"Error analyzing image: {str(e)}"
|
48 |
|
49 |
# Get example images
|
50 |
-
example_images = glob.glob("*.png")
|
51 |
|
52 |
iface = gr.Interface(
|
53 |
fn=analyze_label,
|
@@ -61,5 +61,5 @@ iface = gr.Interface(
|
|
61 |
examples=[[img, MODELS[0]] for img in example_images]
|
62 |
)
|
63 |
|
64 |
-
#
|
65 |
# iface.launch(debug=True)
|
|
|
47 |
return f"Error analyzing image: {str(e)}"
|
48 |
|
49 |
# Get example images
|
50 |
+
example_images = sorted(glob.glob("images (*.png"))
|
51 |
|
52 |
iface = gr.Interface(
|
53 |
fn=analyze_label,
|
|
|
61 |
examples=[[img, MODELS[0]] for img in example_images]
|
62 |
)
|
63 |
|
64 |
+
# For local testing, uncomment the line below
|
65 |
# iface.launch(debug=True)
|