Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,9 +61,9 @@ def chat(x):
|
|
| 61 |
output = result[len(x)-4:]
|
| 62 |
output = re.sub('νν','γ
γ
', output)
|
| 63 |
output = output.split('λ')[0]
|
| 64 |
-
output = output.split('
|
| 65 |
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
| 66 |
-
output = re.sub('[a-zA-Z]',' ',output)
|
| 67 |
|
| 68 |
return output
|
| 69 |
|
|
|
|
| 61 |
output = result[len(x)-4:]
|
| 62 |
output = re.sub('νν','γ
γ
', output)
|
| 63 |
output = output.split('λ')[0]
|
| 64 |
+
output = output.split('endoftext')[0]
|
| 65 |
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
| 66 |
+
#output = re.sub('[a-zA-Z]',' ',output)
|
| 67 |
|
| 68 |
return output
|
| 69 |
|