laverdes commited on
Commit
6a90ff1
·
verified ·
1 Parent(s): 6b3901f

fix: file_path logic

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: