Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,8 @@ def chat(x):
|
|
| 57 |
outout = re.sub("[νν]", "γ
γ
", output)
|
| 58 |
output = output.split('<|endoftext|>')[0]
|
| 59 |
output = output.split('\n')[0]
|
| 60 |
-
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
|
|
|
| 61 |
return output
|
| 62 |
|
| 63 |
def yn(x):
|
|
|
|
| 57 |
outout = re.sub("[νν]", "γ
γ
", output)
|
| 58 |
output = output.split('<|endoftext|>')[0]
|
| 59 |
output = output.split('\n')[0]
|
| 60 |
+
output = re.sub()('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
| 61 |
+
output = re.sub('[a-zA-Z]',' ',output)
|
| 62 |
return output
|
| 63 |
|
| 64 |
def yn(x):
|