Synnove commited on
Commit
b7e3b12
·
verified ·
1 Parent(s): 82fec12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -124,6 +124,8 @@ def run_once(state):
124
  question = questions_data[0]
125
  question_text = question["question"]
126
  task_id = question["task_id"]
 
 
127
 
128
  try:
129
  answer = agent_codeagent(question_text)
@@ -132,6 +134,8 @@ def run_once(state):
132
  except Exception as e:
133
  return f"Error running agent: {e}", None
134
 
 
 
135
  # Create Gradio interface
136
  with gr.Blocks() as demo:
137
  gr.Markdown("## Run AI Agent Once")
 
124
  question = questions_data[0]
125
  question_text = question["question"]
126
  task_id = question["task_id"]
127
+ print(f"\nTask ID: {task_id}")
128
+ print(f"Question: {question_text}")
129
 
130
  try:
131
  answer = agent_codeagent(question_text)
 
134
  except Exception as e:
135
  return f"Error running agent: {e}", None
136
 
137
+
138
+
139
  # Create Gradio interface
140
  with gr.Blocks() as demo:
141
  gr.Markdown("## Run AI Agent Once")