Spaces:
Sleeping
Sleeping
fix: file_path logic
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 180 |
if question_file_name in files:
|
| 181 |
file_path = os.path.join(root, question_file_name)
|
| 182 |
print("file found at: ", file_path)
|
| 183 |
-
metadata = {'image_path': file_path} if '.png' in question_file_name else {}
|
| 184 |
found=True
|
| 185 |
|
| 186 |
if question_file_name and not found:
|
|
|
|
| 180 |
if question_file_name in files:
|
| 181 |
file_path = os.path.join(root, question_file_name)
|
| 182 |
print("file found at: ", file_path)
|
| 183 |
+
metadata = {'image_path': file_path} if '.png' in question_file_name else {'file_path': file_path}
|
| 184 |
found=True
|
| 185 |
|
| 186 |
if question_file_name and not found:
|