Shresthh03 commited on
Commit
d879496
·
verified ·
1 Parent(s): 7bdfbad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -127,10 +127,8 @@ def respond():
127
  return jsonify({"response": ai_reply, "emotion": emotion_label})
128
 
129
 
 
 
130
  @app.route("/")
131
  def index():
132
- return jsonify({"message": "Emotional Support Chatbot API is running!"})
133
-
134
-
135
- if __name__ == "__main__":
136
- app.run(host="0.0.0.0", port=7860)
 
127
  return jsonify({"response": ai_reply, "emotion": emotion_label})
128
 
129
 
130
+ from flask import send_from_directory
131
+
132
  @app.route("/")
133
  def index():
134
+ return send_from_directory(".", "index.html")