Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
312 |
-
|
313 |
-
|
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 |
|