Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def get_response():
|
|
18 |
return jsonify({"error": "User message is required"}), 400
|
19 |
|
20 |
# Construct the URL for you.com API request
|
21 |
-
url = f"https://you.com/api/streamingSearch?page=1&count=10&safeSearch=Moderate&enable_worklow_generation_ux=true&domain=youchat&use_personalization_extraction=false&traceId=&selectedChatMode=user_mode_ed7a545e-d226-457d-8a92-
|
22 |
|
23 |
# Send the request to you.com
|
24 |
response = requests.get(url, headers=headers, stream=True)
|
|
|
18 |
return jsonify({"error": "User message is required"}), 400
|
19 |
|
20 |
# Construct the URL for you.com API request
|
21 |
+
url = f"https://you.com/api/streamingSearch?page=1&count=10&safeSearch=Moderate&enable_worklow_generation_ux=true&domain=youchat&use_personalization_extraction=false&traceId=&selectedChatMode=user_mode_ed7a545e-d226-457d-8a92-c436153fe827&q=CHAT : {user_message}"
|
22 |
|
23 |
# Send the request to you.com
|
24 |
response = requests.get(url, headers=headers, stream=True)
|