Spaces:
Sleeping
Sleeping
SitwalaM
commited on
Commit
·
a43dbe9
1
Parent(s):
b9069b0
added extra fix
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import re
|
|
4 |
def clean_text(text):
|
5 |
# Replace hyphen followed by space or multiple spaces with just a hyphen
|
6 |
text = re.sub(r'-(?=\w)', '', text)
|
7 |
-
text = re.sub(r'-\s+', '
|
8 |
return text
|
9 |
|
10 |
# Title of the Streamlit app
|
|
|
4 |
def clean_text(text):
|
5 |
# Replace hyphen followed by space or multiple spaces with just a hyphen
|
6 |
text = re.sub(r'-(?=\w)', '', text)
|
7 |
+
text = re.sub(r'-\s+', '', text)
|
8 |
return text
|
9 |
|
10 |
# Title of the Streamlit app
|