Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import json
|
|
5 |
from PIL import Image, ImageDraw
|
6 |
|
7 |
# Open the JSON file
|
8 |
-
with open('
|
9 |
# Load the JSON data from the file
|
10 |
data = json.load(file)
|
11 |
|
@@ -70,7 +70,7 @@ with gr.Blocks() as demo:
|
|
70 |
return section_labels[evt.index]
|
71 |
|
72 |
gr.Examples(
|
73 |
-
examples=["
|
74 |
inputs=img_input,
|
75 |
outputs=img_output,
|
76 |
fn=section,
|
|
|
5 |
from PIL import Image, ImageDraw
|
6 |
|
7 |
# Open the JSON file
|
8 |
+
with open('image1.json', 'r') as file:
|
9 |
# Load the JSON data from the file
|
10 |
data = json.load(file)
|
11 |
|
|
|
70 |
return section_labels[evt.index]
|
71 |
|
72 |
gr.Examples(
|
73 |
+
examples=["20230210_110954 _1_.png"],
|
74 |
inputs=img_input,
|
75 |
outputs=img_output,
|
76 |
fn=section,
|