APRG commited on
Commit
2c90892
·
verified ·
1 Parent(s): 7abfc04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -40,9 +40,13 @@ class BasicAgent:
40
  ```{}```
41
  """
42
  print(f"Agent received question (first 50 chars): {question[:50]}...")
43
- answer = self.agent.run(prompt.format(question))
44
- print(f"Agent returning answer: {answer}")
45
- return answer.replace("FINAL ANSWER:", "").strip()
 
 
 
 
46
 
47
  def run_and_submit_all( profile: gr.OAuthProfile | None):
48
  """
 
40
  ```{}```
41
  """
42
  print(f"Agent received question (first 50 chars): {question[:50]}...")
43
+ print(type(prompt))
44
+ print(type(question))
45
+ print(type(prompt + question))
46
+ answer = self.agent.run(prompt + question))
47
+ print(type(answer))
48
+ print(f"Agent returning answer: {str(answer)}")
49
+ return str(answer).replace("FINAL ANSWER:", "").strip()
50
 
51
  def run_and_submit_all( profile: gr.OAuthProfile | None):
52
  """