tawfikgh commited on
Commit
002d02c
1 Parent(s): 46c27ce

Update chatbot_helper.py

Browse files
Files changed (1) hide show
  1. 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(2)
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(3)
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