Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -405,7 +405,7 @@ async def handle_chat(
|
|
| 405 |
):
|
| 406 |
full_response += chunk
|
| 407 |
# Add delay between chunks for readability
|
| 408 |
-
await asyncio.sleep(
|
| 409 |
history[-1]["content"] = full_response
|
| 410 |
yield history
|
| 411 |
|
|
@@ -415,7 +415,7 @@ async def handle_chat(
|
|
| 415 |
):
|
| 416 |
full_response += chunk
|
| 417 |
# Add delay between chunks for readability
|
| 418 |
-
await asyncio.sleep(
|
| 419 |
history[-1]["content"] = full_response
|
| 420 |
yield history
|
| 421 |
|
|
|
|
| 405 |
):
|
| 406 |
full_response += chunk
|
| 407 |
# Add delay between chunks for readability
|
| 408 |
+
await asyncio.sleep(0.5)
|
| 409 |
history[-1]["content"] = full_response
|
| 410 |
yield history
|
| 411 |
|
|
|
|
| 415 |
):
|
| 416 |
full_response += chunk
|
| 417 |
# Add delay between chunks for readability
|
| 418 |
+
await asyncio.sleep(0.5)
|
| 419 |
history[-1]["content"] = full_response
|
| 420 |
yield history
|
| 421 |
|