Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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)
|