cowrycode commited on
Commit
f4d7da6
·
verified ·
1 Parent(s): 44cefba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -39,12 +39,7 @@ class BasicAgent:
39
  return answer
40
 
41
  def __call__(self, question: str) -> str:
42
- #return self.run(question)
43
-
44
- try:
45
- return asyncio.get_event_loop().run_until_complete(self.run(question))
46
- except RuntimeError:
47
- return asyncio.run(self.run(question))
48
 
49
 
50
  #print(f"Agent received question (first 50 chars): {question[:50]}...")
 
39
  return answer
40
 
41
  def __call__(self, question: str) -> str:
42
+ return self.run(question)
 
 
 
 
 
43
 
44
 
45
  #print(f"Agent received question (first 50 chars): {question[:50]}...")