Xhaheen commited on
Commit
80c81f4
·
verified ·
1 Parent(s): 6fff1ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # Remove the launch command for Gradio Spaces
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)