Spaces:
Sleeping
Sleeping
Update chatbot_helper.py
Browse files- chatbot_helper.py +2 -2
chatbot_helper.py
CHANGED
@@ -76,7 +76,7 @@ async def question_suggestion_api(message:str)-> list:
|
|
76 |
|
77 |
# Making the POST request
|
78 |
response = requests.post(url, params=payload)
|
79 |
-
await asyncio.sleep(
|
80 |
print(response)
|
81 |
print(response.text)
|
82 |
|
@@ -116,7 +116,7 @@ async def send_chatbot_request(question, cohere_api_key)-> dict:
|
|
116 |
# Making the POST request
|
117 |
try:
|
118 |
response = requests.post(url, params=payload,timeout=26)
|
119 |
-
await asyncio.sleep(
|
120 |
print("hello")
|
121 |
|
122 |
|
|
|
76 |
|
77 |
# Making the POST request
|
78 |
response = requests.post(url, params=payload)
|
79 |
+
await asyncio.sleep(1)
|
80 |
print(response)
|
81 |
print(response.text)
|
82 |
|
|
|
116 |
# Making the POST request
|
117 |
try:
|
118 |
response = requests.post(url, params=payload,timeout=26)
|
119 |
+
await asyncio.sleep(1)
|
120 |
print("hello")
|
121 |
|
122 |
|