SergeyO7 commited on
Commit
5e558c9
·
verified ·
1 Parent(s): 9fe9bf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -194,18 +194,18 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
194
  if not task_id or question_text is None:
195
  print(f"Skipping item with missing task_id or question: {item}")
196
  continue
197
- if "excel" in question_text.lower() or "pie.mp3" in question_text.lower():
198
- file_path = await check_n_load_attach(session, task_id)
199
- result = await process_question(agent, question_text, task_id, file_path, results_log)
200
- if result:
201
- answers_payload.append(result)
202
- else:
203
- print(f"Skipping not related question")
204
- results_log.append({
205
- "Task ID": task_id,
206
- "Question": question_text,
207
- "Submitted Answer": "Question skipped - not related"
208
- })
209
  # await asyncio.sleep(30)
210
 
211
  if not answers_payload:
 
194
  if not task_id or question_text is None:
195
  print(f"Skipping item with missing task_id or question: {item}")
196
  continue
197
+ # if "excel" in question_text.lower() or "pie.mp3" in question_text.lower():
198
+ file_path = await check_n_load_attach(session, task_id)
199
+ result = await process_question(agent, question_text, task_id, file_path, results_log)
200
+ if result:
201
+ answers_payload.append(result)
202
+ # else:
203
+ # print(f"Skipping not related question")
204
+ # results_log.append({
205
+ # "Task ID": task_id,
206
+ # "Question": question_text,
207
+ # "Submitted Answer": "Question skipped - not related"
208
+ # })
209
  # await asyncio.sleep(30)
210
 
211
  if not answers_payload: