Spaces:
Runtime error
Runtime error
Commit
·
09ec2a1
1
Parent(s):
cf5e860
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ model_2 = AutoModelForSeq2SeqLM.from_pretrained(model_type_2, use_auth_token='ap
|
|
44 |
def headline_generator_2(file):
|
45 |
input_text = clean_text(file.name)
|
46 |
input_text = sent_tokenize(input_text)
|
47 |
-
text = ''.join(input_text[:
|
48 |
|
49 |
with tokenizer_2.as_target_tokenizer():
|
50 |
batch = tokenizer_2(
|
|
|
44 |
def headline_generator_2(file):
|
45 |
input_text = clean_text(file.name)
|
46 |
input_text = sent_tokenize(input_text)
|
47 |
+
text = ''.join(input_text[:6])
|
48 |
|
49 |
with tokenizer_2.as_target_tokenizer():
|
50 |
batch = tokenizer_2(
|