fschwartzer commited on
Commit
15433c2
1 Parent(s): 0fd5630

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -14,6 +14,8 @@ def get_ai_response(messages):
14
  return response['message']['content']
15
  except Exception as e:
16
  st.error(f"Error: {str(e)}")
 
 
17
  return None
18
 
19
  def main():
 
14
  return response['message']['content']
15
  except Exception as e:
16
  st.error(f"Error: {str(e)}")
17
+ import traceback
18
+ st.text(traceback.format_exc()) # This will print the stack trace.
19
  return None
20
 
21
  def main():