aliabid94 HF staff commited on
Commit
86c8dd4
1 Parent(s): cda15c8

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -1
run.py CHANGED
@@ -14,7 +14,7 @@ def autocomplete(text):
14
  generated_text = generator(
15
  end_text, return_full_text=False, clean_up_tokenization_spaces=True
16
  )[0]["generated_text"]
17
- generated_text = generated_text.replace("\n", " ")
18
  generated_text = " ".join(generated_text.split(" ")[:-1])
19
  return generated_text
20
 
 
14
  generated_text = generator(
15
  end_text, return_full_text=False, clean_up_tokenization_spaces=True
16
  )[0]["generated_text"]
17
+ generated_text = generated_text.replace("\n", ". ")
18
  generated_text = " ".join(generated_text.split(" ")[:-1])
19
  return generated_text
20