Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import re
|
3 |
import torch
|
4 |
import tempfile
|
@@ -39,7 +39,7 @@ def clean_text(text: str) -> str:
|
|
39 |
"""
|
40 |
Removes undesired characters (e.g., asterisks) that might not be recognized by the model's vocabulary.
|
41 |
"""
|
42 |
-
# Remove all asterisks.
|
43 |
return re.sub(r'\*', '', text)
|
44 |
|
45 |
# ---------------------------------------------------------------------
|
|
|
1 |
+
import os
|
2 |
import re
|
3 |
import torch
|
4 |
import tempfile
|
|
|
39 |
"""
|
40 |
Removes undesired characters (e.g., asterisks) that might not be recognized by the model's vocabulary.
|
41 |
"""
|
42 |
+
# Remove all asterisks.
|
43 |
return re.sub(r'\*', '', text)
|
44 |
|
45 |
# ---------------------------------------------------------------------
|