Spaces:
Sleeping
Sleeping
freshbash
commited on
Commit
·
d20deed
1
Parent(s):
2021aca
changed model
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def respond(
|
|
18 |
print("Response generated!")
|
19 |
|
20 |
# Split by "Answer:" from the right and get the last part
|
21 |
-
response = output.rsplit("Answer
|
22 |
|
23 |
return response
|
24 |
|
|
|
18 |
print("Response generated!")
|
19 |
|
20 |
# Split by "Answer:" from the right and get the last part
|
21 |
+
response = output.rsplit("Answer:\n", 1)[-1]
|
22 |
|
23 |
return response
|
24 |
|