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