stzhao commited on
Commit
a49a615
·
verified ·
1 Parent(s): c465528

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def render_annotations(annotations, image_dir):
66
 
67
  # Gradio interface function
68
  def gradio_interface():
69
- example_dir = "examples/1"
70
  annotations_file = random.choice([f for f in os.listdir(example_dir) if f.endswith('.json')])
71
  annotations = load_annotations(os.path.join(example_dir, annotations_file))
72
  annotated_images = render_annotations(annotations, example_dir)
 
66
 
67
  # Gradio interface function
68
  def gradio_interface():
69
+ example_dir = "examples"
70
  annotations_file = random.choice([f for f in os.listdir(example_dir) if f.endswith('.json')])
71
  annotations = load_annotations(os.path.join(example_dir, annotations_file))
72
  annotated_images = render_annotations(annotations, example_dir)