remove substring_after function
Browse files- handler.py +0 -3
handler.py
CHANGED
@@ -93,9 +93,6 @@ class EndpointHandler:
|
|
93 |
output_tokens[0]
|
94 |
)
|
95 |
|
96 |
-
def substring_after(s, delim):
|
97 |
-
return s.partition(delim)[2]
|
98 |
-
|
99 |
answer = generated_text.split('>>END<<')[0].split('>>ANSWER<<:')[1].strip()
|
100 |
|
101 |
if "CONTEXT:" in answer:
|
|
|
93 |
output_tokens[0]
|
94 |
)
|
95 |
|
|
|
|
|
|
|
96 |
answer = generated_text.split('>>END<<')[0].split('>>ANSWER<<:')[1].strip()
|
97 |
|
98 |
if "CONTEXT:" in answer:
|