Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
@@ -10,6 +10,9 @@ duck = DuckAI() # Create once if DuckAI is heavy
|
|
10 |
@app.route("/chat/", methods=["GET"])
|
11 |
def chat():
|
12 |
query = request.args.get("query")
|
|
|
|
|
|
|
13 |
if not query:
|
14 |
return jsonify({"error": "Query parameter is required"}), 400
|
15 |
|
|
|
10 |
@app.route("/chat/", methods=["GET"])
|
11 |
def chat():
|
12 |
query = request.args.get("query")
|
13 |
+
print(query)
|
14 |
+
|
15 |
+
|
16 |
if not query:
|
17 |
return jsonify({"error": "Query parameter is required"}), 400
|
18 |
|