Spaces:
Build error
Build error
fix bug in chat - strip username from output
Browse files
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("
|
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()
|