Spaces:
Sleeping
Sleeping
replace * with null char
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def ask(prompt):
|
|
66 |
print("Tokenizer decode process started")
|
67 |
answer = tokenizer.decode(outputs[0])
|
68 |
print("Answer:", answer)
|
69 |
-
answer = answer.split("<end_of_turn>")[1].strip()
|
70 |
print("Final answer:", answer)
|
71 |
|
72 |
return answer
|
|
|
66 |
print("Tokenizer decode process started")
|
67 |
answer = tokenizer.decode(outputs[0])
|
68 |
print("Answer:", answer)
|
69 |
+
answer = answer.split("<end_of_turn>")[1].strip().replace("*", "")
|
70 |
print("Final answer:", answer)
|
71 |
|
72 |
return answer
|