Spaces:
Paused
Paused
Update app.py
Browse files
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},
|