han1997 commited on
Commit
00e38ee
·
verified ·
1 Parent(s): a15ba40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,8 +94,8 @@ def bot_streaming(message, history, temperature, top_k, max_new_tokens):
94
  # yield buffer
95
 
96
  prompt_builder.add_turn(role="gpt", message=buffer)
97
-
98
- return buffer
99
 
100
 
101
  demo = gr.ChatInterface(fn=bot_streaming,
 
94
  # yield buffer
95
 
96
  prompt_builder.add_turn(role="gpt", message=buffer)
97
+
98
+ yield buffer
99
 
100
 
101
  demo = gr.ChatInterface(fn=bot_streaming,