Spaces:
Runtime error
Runtime error
ydshieh
commited on
Commit
•
3568832
1
Parent(s):
9a6a97f
fix syntax
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ sample_name = st.sidebar.selectbox(
|
|
24 |
sample_fns
|
25 |
)
|
26 |
|
27 |
-
sample_name = f
|
28 |
sample_path = os.path.join(sample_dir, sample_name)
|
29 |
|
30 |
image = Image.open(sample_path)
|
|
|
24 |
sample_fns
|
25 |
)
|
26 |
|
27 |
+
sample_name = f"COCO_val2014_{sample_name.replace('.jpg', '').zfill(12)}.jpg"
|
28 |
sample_path = os.path.join(sample_dir, sample_name)
|
29 |
|
30 |
image = Image.open(sample_path)
|