Spaces:
Runtime error
Runtime error
yrodriguezmd
commited on
Commit
•
5308fba
1
Parent(s):
dcbfd14
Update app.py
Browse files
app.py
CHANGED
@@ -39,12 +39,14 @@ valid_tfms = tfms.A.Adapter(
|
|
39 |
[*tfms.A.resize_and_pad(img_size), tfms.A.Normalize()])
|
40 |
|
41 |
# examples
|
42 |
-
for root, dirs, files in os.walk(r'sample_images/'):
|
43 |
-
for filename in files:
|
44 |
-
print(filename)
|
45 |
|
46 |
-
examples = ["sample_images/"+file for file in files]
|
47 |
|
|
|
|
|
48 |
|
49 |
def show_preds_gradio(input_image, display_label, display_bbox, detection_threshold):
|
50 |
|
|
|
39 |
[*tfms.A.resize_and_pad(img_size), tfms.A.Normalize()])
|
40 |
|
41 |
# examples
|
42 |
+
#for root, dirs, files in os.walk(r'sample_images/'):
|
43 |
+
# for filename in files:
|
44 |
+
# print(filename)
|
45 |
|
46 |
+
#examples = ["sample_images/"+file for file in files]
|
47 |
|
48 |
+
|
49 |
+
examples=[['sample_images/Image00001.jpg'],['sample_images/Image00002.jpg']]
|
50 |
|
51 |
def show_preds_gradio(input_image, display_label, display_bbox, detection_threshold):
|
52 |
|