Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- 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 |
}
|