Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def get_types(cls_set: List[Type], component: str):
|
|
| 30 |
routes.get_types = get_types
|
| 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)
|
|
|
|
| 30 |
routes.get_types = get_types
|
| 31 |
|
| 32 |
def cut(prom, out):
|
| 33 |
+
output = out[len(prom)-2:]
|
| 34 |
output = output.split('<|endoftext|>')[0]
|
| 35 |
output = output.split('\n')[0]
|
| 36 |
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|