Spaces:
Runtime error
Runtime error
Commit
·
f9d338a
1
Parent(s):
09ec2a1
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def headline_generator_2(file):
|
|
52 |
)
|
53 |
|
54 |
translated = model_2.generate(**batch)
|
55 |
-
summary_2 = tokenizer_2.batch_decode(translated, skip_special_tokens=True, max_length=
|
56 |
return summary_2[0]
|
57 |
|
58 |
#creating an interface for the headline generator using gradio
|
|
|
52 |
)
|
53 |
|
54 |
translated = model_2.generate(**batch)
|
55 |
+
summary_2 = tokenizer_2.batch_decode(translated, skip_special_tokens=True, max_length=20)
|
56 |
return summary_2[0]
|
57 |
|
58 |
#creating an interface for the headline generator using gradio
|