Potential fix for issues/571
diff --git a/modules/text_generation.py b/modules/text_generation.py
index fd017e2c1d..eb8f6ca17c 100644
--- a/modules/text_generation.py
+++ b/modules/text_generation.py
@@ -236,8 +236,6 @@ def generate_with_streaming(**kwargs):
                         break
                     yield formatted_outputs(reply, shared.model_name)
 
-                yield formatted_outputs(reply, shared.model_name)
-
         # Stream the output naively for FlexGen since it doesn't support 'stopping_criteria'
         else:
             for i in range(max_new_tokens//8+1):

It appears that the line removed was introduced as part of a merge conflict/fix in https://github.com/oobabooga/text-generation-webui/commit/b3e10e47c05128bf477833d8261ea5bedecc9aac . Removing the line appears to remove the stack trace from logs, and I believe results in one fewer emission of the final reply generated in the preceding loop.