Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ chat_history = "user: Hey there"
|
|
| 33 |
ID = "user_mode_e06ed9c3-ad9c-4e22-8e3a-9f5775bdd6db"
|
| 34 |
|
| 35 |
# Construct the URL for you.com API request
|
| 36 |
-
url = f"https://you.com/api/streamingSearch?page=1&count=10&safeSearch=Moderate&enable_worklow_generation_ux=true&domain=youchat&use_personalization_extraction=
|
| 37 |
|
| 38 |
# Send the request to you.com
|
| 39 |
response = requests.get(url, headers=headers, stream=True)
|
|
|
|
| 33 |
ID = "user_mode_e06ed9c3-ad9c-4e22-8e3a-9f5775bdd6db"
|
| 34 |
|
| 35 |
# Construct the URL for you.com API request
|
| 36 |
+
url = f"https://you.com/api/streamingSearch?page=1&count=10&safeSearch=Moderate&mkt=fr-FR&enable_worklow_generation_ux=true&domain=youchat&use_personalization_extraction=true&queryTraceId=0a4e7382-705c-4391-9344-58f09d429b05&chatId=7d4eb946-cc48-4fe0-8a90-0625e6d49ea7&conversationTurnId=43947390-63c6-47de-b0b0-e8ce47e47397&pastChatLength=1&selectedChatMode=default&enable_agent_clarification_questions=true&traceId=7d4eb946-cc48-4fe0-8a90-0625e6d49ea7|43947390-63c6-47de-b0b0-e8ce47e47397|2024-12-09T10:21:29.954Z&use_nested_youchat_updates=true&q=hey&chat=%5B%7B%22question%22%3A%22%D8%A7%D8%AB%D8%BA%22%2C%22answer%22%3A%22It%20seems%20like%20you%27ve%20entered%20%5C%22%D8%A7%D8%AB%D8%BA%2C%5C%22%20which%20is%20an%20Arabic%20term.%20According%20to%20the%20search%20results%2C%20the%20word%20%5C%22%D8%A7%D8%AB%D8%BA%5C%22%20translates%20to%20%5C%22blat%5C%22%20in%20English.%20If%20you%20need%20more%20information%20or%20further%20assistance%2C%20feel%20free%20to%20ask!%22%7D%5D"
|
| 37 |
|
| 38 |
# Send the request to you.com
|
| 39 |
response = requests.get(url, headers=headers, stream=True)
|