Spaces:
Build error
Build error
Commit
·
7efbd03
1
Parent(s):
9e77097
Update app.py
Browse filesoutput format fix
app.py
CHANGED
@@ -31,7 +31,7 @@ def summarize(inputs,model,summary_length):
|
|
31 |
#we decode the predictions to store them
|
32 |
decoded_predictions = tokenizer.batch_decode(preds, skip_special_tokens=True)
|
33 |
#return
|
34 |
-
return decoded_predictions
|
35 |
|
36 |
description = "Quickly summarize your German text in a few sentences. \nThe algorithm was fine-tuned on high-quality German news articles."
|
37 |
|
|
|
31 |
#we decode the predictions to store them
|
32 |
decoded_predictions = tokenizer.batch_decode(preds, skip_special_tokens=True)
|
33 |
#return
|
34 |
+
return decoded_predictions[0]
|
35 |
|
36 |
description = "Quickly summarize your German text in a few sentences. \nThe algorithm was fine-tuned on high-quality German news articles."
|
37 |
|