ErNewdev0 commited on
Commit
61b8783
·
verified ·
1 Parent(s): fa540fa

Update app.py

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