Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def generate_output(prompt, input, kwargs):
|
|
22 |
output = tokenizer.batch_decode(
|
23 |
generate[:, inputs.input_ids.shape[1] :], skip_special_tokens=True
|
24 |
)
|
25 |
-
return output[0].split("\n
|
26 |
|
27 |
|
28 |
def summarization(input: str):
|
|
|
22 |
output = tokenizer.batch_decode(
|
23 |
generate[:, inputs.input_ids.shape[1] :], skip_special_tokens=True
|
24 |
)
|
25 |
+
return output[0].split("\n")[0].strip()
|
26 |
|
27 |
|
28 |
def summarization(input: str):
|