Spaces:
Runtime error
Runtime error
AlexWortega
commited on
Commit
•
9421b11
1
Parent(s):
a9751ec
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def ans(question ):
|
|
17 |
|
18 |
gen = tokenizer.decode(gen[0])
|
19 |
gen = gen[:gen.index('<eos>') if '<eos>' in gen else len(gen)]
|
20 |
-
gen =
|
21 |
return gen
|
22 |
|
23 |
|
|
|
17 |
|
18 |
gen = tokenizer.decode(gen[0])
|
19 |
gen = gen[:gen.index('<eos>') if '<eos>' in gen else len(gen)]
|
20 |
+
gen = gen.split('Ответ:')[1]
|
21 |
return gen
|
22 |
|
23 |
|