gururise commited on
Commit
efafe5a
1 Parent(s): e956f7f

fix bug in chat - strip username from output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -199,7 +199,7 @@ def chat(
199
  "<|endoftext|>", username+":"], temp=temperature, top_p_usual=top_p, end_adj=end_adj)
200
 
201
  generated_text = out["output"].lstrip("\n ")
202
- generated_text = generated_text.rstrip("USER:")
203
  print(f"{generated_text}")
204
 
205
  gc.collect()
 
199
  "<|endoftext|>", username+":"], temp=temperature, top_p_usual=top_p, end_adj=end_adj)
200
 
201
  generated_text = out["output"].lstrip("\n ")
202
+ generated_text = generated_text.rstrip(username + ":")
203
  print(f"{generated_text}")
204
 
205
  gc.collect()