Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,11 +95,11 @@ def run_classifer(model_key, image_path, prob_threshold = None):
|
|
| 95 |
|
| 96 |
"""
|
| 97 |
|
| 98 |
-
example_list_dir
|
| 99 |
example_list_img_names = os.listdir(example_list_dir)
|
| 100 |
|
| 101 |
example_list = [
|
| 102 |
-
["CLIP-large", os.path.join(
|
| 103 |
for example_img in example_list_img_names
|
| 104 |
if example_img.lower().endswith(".png")]
|
| 105 |
|
|
|
|
| 95 |
|
| 96 |
"""
|
| 97 |
|
| 98 |
+
example_list_dir = os.path.join(os.getcwd(), "Example images")
|
| 99 |
example_list_img_names = os.listdir(example_list_dir)
|
| 100 |
|
| 101 |
example_list = [
|
| 102 |
+
["CLIP-large", os.path.join(example_list_dir, example_img)]
|
| 103 |
for example_img in example_list_img_names
|
| 104 |
if example_img.lower().endswith(".png")]
|
| 105 |
|