srbmihaicode commited on
Commit
4cd8bad
·
verified ·
1 Parent(s): 5cccab7

Added error printing

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,6 +30,7 @@ def generate_journal_suggestion(current_page):
30
 
31
  return suggestion_response
32
  except Exception as e:
 
33
  return jsonify({"error": str(e)}), 500
34
 
35
 
@@ -52,6 +53,7 @@ def chat():
52
 
53
  return jsonify({"journal_suggestion": suggestion})
54
  except Exception as e:
 
55
  return jsonify({"error": str(e)}), 500
56
 
57
  if __name__ == "__main__":
 
30
 
31
  return suggestion_response
32
  except Exception as e:
33
+ print(e)
34
  return jsonify({"error": str(e)}), 500
35
 
36
 
 
53
 
54
  return jsonify({"journal_suggestion": suggestion})
55
  except Exception as e:
56
+ print(e)
57
  return jsonify({"error": str(e)}), 500
58
 
59
  if __name__ == "__main__":