BenjaminKaindu0506 commited on
Commit
73668ae
·
verified ·
1 Parent(s): 5106442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -124,8 +124,9 @@ class BasicAgent:
124
  answer = self.agent.run(question)
125
  return str(answer).strip()
126
  except Exception as e:
127
- print(f"Error during agent run: {e}")
128
- return "Error"
 
129
 
130
  def run_and_submit_all( profile: gr.OAuthProfile | None):
131
  """
 
124
  answer = self.agent.run(question)
125
  return str(answer).strip()
126
  except Exception as e:
127
+ import traceback
128
+ traceback.print_exc()
129
+ return "Error"
130
 
131
  def run_and_submit_all( profile: gr.OAuthProfile | None):
132
  """