Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,8 @@ def evaluate(instruction, input=None):
|
|
60 |
result = []
|
61 |
for s in generation_output.sequences:
|
62 |
output = tokenizer.decode(s)
|
63 |
-
|
64 |
-
return ' '.join(el for el in
|
65 |
|
66 |
def inference(text, input):
|
67 |
output = evaluate(instruction = text, input = input)
|
|
|
60 |
result = []
|
61 |
for s in generation_output.sequences:
|
62 |
output = tokenizer.decode(s)
|
63 |
+
result.append( output.split("### Response:")[1].strip())
|
64 |
+
return ' '.join(el for el in result)
|
65 |
|
66 |
def inference(text, input):
|
67 |
output = evaluate(instruction = text, input = input)
|