Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,8 +31,8 @@ routes.get_types = get_types
|
|
| 31 |
|
| 32 |
def cut(prom, out):
|
| 33 |
output = out[len(prom):]
|
| 34 |
-
output = output.split('\n')[0]
|
| 35 |
output = output.split('<|endoftext|>')[0]
|
|
|
|
| 36 |
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
| 37 |
return output
|
| 38 |
# App code
|
|
|
|
| 31 |
|
| 32 |
def cut(prom, out):
|
| 33 |
output = out[len(prom):]
|
|
|
|
| 34 |
output = output.split('<|endoftext|>')[0]
|
| 35 |
+
output = output.split('\n')[0]
|
| 36 |
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
| 37 |
return output
|
| 38 |
# App code
|