codys12 commited on
Commit
5f9f635
1 Parent(s): 192a9de
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -77,7 +77,10 @@ def generate(
77
  outputs = []
78
  for text in streamer:
79
  outputs.append(text)
80
- yield "".join(outputs)
 
 
 
81
 
82
 
83
  chat_interface = gr.ChatInterface(
 
77
  outputs = []
78
  for text in streamer:
79
  outputs.append(text)
80
+ combined_text = "".join(outputs)
81
+ yield combined_text
82
+ if "<<<<<<<" in combined_text:
83
+ break
84
 
85
 
86
  chat_interface = gr.ChatInterface(