rbn2008k commited on
Commit
7cc14a8
1 Parent(s): 243a528

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -153,6 +153,7 @@ async def get_bot_id():
153
  # OpenAI completion handler
154
  async def get_completion(client, event, user_id, prompt):
155
  async with client.action(event.chat_id, 'typing'):
 
156
  history = get_chat_history(user_id)
157
  messages = [
158
  {"role": "system", "content": system_prompt},
 
153
  # OpenAI completion handler
154
  async def get_completion(client, event, user_id, prompt):
155
  async with client.action(event.chat_id, 'typing'):
156
+ asyncio.sleep(1)
157
  history = get_chat_history(user_id)
158
  messages = [
159
  {"role": "system", "content": system_prompt},