Spaces:
Runtime error
Runtime error
Commit
·
81bb56a
1
Parent(s):
f5ac780
minor change
Browse files- conversation.py +1 -1
conversation.py
CHANGED
@@ -141,7 +141,7 @@ import wordninja
|
|
141 |
def clean_text(text):
|
142 |
|
143 |
text = text.strip().lower()
|
144 |
-
|
145 |
words = wordninja.split(output_paragraph)
|
146 |
|
147 |
return ' '.join(words)
|
|
|
141 |
def clean_text(text):
|
142 |
|
143 |
text = text.strip().lower()
|
144 |
+
output_paragraph = ' '.join(''.join(text.split()).split(' '))
|
145 |
words = wordninja.split(output_paragraph)
|
146 |
|
147 |
return ' '.join(words)
|