Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ def generate_response(query:str) -> str:
|
|
55 |
# Chat Endpoint
|
56 |
@app.route("/chat", methods=["POST"])
|
57 |
def chat():
|
|
|
58 |
data = request.json
|
59 |
api_key = data.get("api_key")
|
60 |
message = data.get("message", "").strip()
|
|
|
55 |
# Chat Endpoint
|
56 |
@app.route("/chat", methods=["POST"])
|
57 |
def chat():
|
58 |
+
global request_count
|
59 |
data = request.json
|
60 |
api_key = data.get("api_key")
|
61 |
message = data.get("message", "").strip()
|