Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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")
|
|
|
|
|
|
|
|
|
|
|
|