shreyask commited on
Commit
7b4eff0
·
verified ·
1 Parent(s): 6c99ab9

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. src/worker.ts +1 -1
src/worker.ts CHANGED
@@ -162,7 +162,7 @@ function ensurePunctuation(text: string): string {
162
  text = text.trim();
163
  if (!text) return text;
164
  if (!".!?,;:".includes(text[text.length - 1])) {
165
- text += ",";
166
  }
167
  return text;
168
  }
 
162
  text = text.trim();
163
  if (!text) return text;
164
  if (!".!?,;:".includes(text[text.length - 1])) {
165
+ text += ".";
166
  }
167
  return text;
168
  }