Sborole commited on
Commit
bc354cb
·
verified ·
1 Parent(s): f3a02eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -141,6 +141,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
141
 
142
  results_log = []
143
  answers_payload = []
 
144
  for item in subset:
145
  print(f"ITEMS {item}")
146
  task_id = item.get("task_id")
@@ -150,16 +151,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
150
  file_name = item.get("file_name")
151
  print(f"File Name {file_name}")
152
  file_path = id_to_path.get(task_id, None)
 
153
  file_content = None
154
  if file_name and file_path:
155
  exists = os.path.exists(file_path)
156
  print("Checking file path")
157
- debug_log.append({
158
- "Task ID": task_id,
159
- "File Name": file_name,
160
- "Path Exists": "✅ YES" if exists else "❌ NO",
161
- "Calculated Path": path_check
162
- })
163
  print(f"Attempting to load file at: {file_path} (Exists: {exists})")
164
 
165
  if exists:
 
141
 
142
  results_log = []
143
  answers_payload = []
144
+
145
  for item in subset:
146
  print(f"ITEMS {item}")
147
  task_id = item.get("task_id")
 
151
  file_name = item.get("file_name")
152
  print(f"File Name {file_name}")
153
  file_path = id_to_path.get(task_id, None)
154
+ print(f"File path {file_path}")
155
  file_content = None
156
  if file_name and file_path:
157
  exists = os.path.exists(file_path)
158
  print("Checking file path")
159
+ print(f"Task ID": {task_id},"File Name": {file_name},"Path Exists": " YES" if exists else "NO", "Calculated Path": {file_path}")
 
 
 
 
 
160
  print(f"Attempting to load file at: {file_path} (Exists: {exists})")
161
 
162
  if exists: