alexkueck commited on
Commit
2edcc3d
1 Parent(s): 88ecd1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -305,12 +305,12 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
305
  raise gr.Error(e)
306
 
307
  chatbot_message = chatbot_response[len(prompt):].strip()
308
- return chatbot_message
309
 
310
  #Antwort als Stream ausgeben...
311
- #for i in range(len(result)):
312
- #time.sleep(0.05)
313
- #yield result[: i+1]
314
 
315
 
316
 
 
305
  raise gr.Error(e)
306
 
307
  chatbot_message = chatbot_response[len(prompt):].strip()
308
+ #return chatbot_message
309
 
310
  #Antwort als Stream ausgeben...
311
+ for i in range(len(chatbot_message)):
312
+ time.sleep(0.05)
313
+ yield chatbot_message[: i+1]
314
 
315
 
316