srbmihaicode commited on
Commit
ec391b4
·
verified ·
1 Parent(s): 855f0ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -31,6 +31,9 @@ def generate_response(message, history, system_message, max_tokens, temperature,
31
 
32
  return response
33
 
 
 
 
34
  # API endpoint to handle requests
35
  @app.route("/chat", methods=["POST"])
36
  def chat():
@@ -55,4 +58,4 @@ def chat():
55
  return jsonify({"error": str(e)}), 500
56
 
57
  if __name__ == "__main__":
58
- app.run(debug==True)
 
31
 
32
  return response
33
 
34
+ @app.route("/chat", methods=["POST"])
35
+ def home():
36
+ return "Hi!"
37
  # API endpoint to handle requests
38
  @app.route("/chat", methods=["POST"])
39
  def chat():
 
58
  return jsonify({"error": str(e)}), 500
59
 
60
  if __name__ == "__main__":
61
+ app.run(debug=True)