eneSadi commited on
Commit
9660892
·
unverified ·
1 Parent(s): 208435b

replace * with null char

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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