staedi commited on
Commit
7b3825e
·
verified ·
1 Parent(s): dcac90b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
 
6
  import agent
7
 
8
  # (Keep Constants as is)
@@ -19,7 +20,7 @@ class BasicAgent:
19
  def __call__(self, question: str) -> str:
20
  print(f"Agent received question (first 50 chars): {question[:50]}...")
21
 
22
- answer = agent.run_async_task(agent.await_result,self.agent,question)
23
  # answer = "This is a default answer."
24
 
25
  # print(f"Agent returning fixed answer: {answer}")
 
3
  import requests
4
  import inspect
5
  import pandas as pd
6
+ import utils
7
  import agent
8
 
9
  # (Keep Constants as is)
 
20
  def __call__(self, question: str) -> str:
21
  print(f"Agent received question (first 50 chars): {question[:50]}...")
22
 
23
+ answer = utils.run_async_task(agent.await_result,self.agent,question)
24
  # answer = "This is a default answer."
25
 
26
  # print(f"Agent returning fixed answer: {answer}")