Luong Huu Thanh commited on
Commit
fb4483c
·
1 Parent(s): 039a1df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import inspect
4
  import gradio as gr
5
  import requests
6
  import pandas as pd
 
7
  from langchain_core.messages import HumanMessage
8
  from agent import build_graph
9
 
@@ -92,6 +93,9 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
92
  if not task_id or question_text is None:
93
  print(f"Skipping item with missing task_id or question: {item}")
94
  continue
 
 
 
95
  try:
96
  submitted_answer = agent(question_text)
97
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
 
4
  import gradio as gr
5
  import requests
6
  import pandas as pd
7
+ import time
8
  from langchain_core.messages import HumanMessage
9
  from agent import build_graph
10
 
 
93
  if not task_id or question_text is None:
94
  print(f"Skipping item with missing task_id or question: {item}")
95
  continue
96
+
97
+ time.sleep(2)
98
+
99
  try:
100
  submitted_answer = agent(question_text)
101
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})