Carlosito16 commited on
Commit
4be0f09
1 Parent(s): a762485

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def clear_input():
83
 
84
  def camembert_generate_summary(article_text):
85
  inputs = cmb_tokenizer([article_text], padding="max_length", truncation=True,
86
- max_length=250,
87
  return_tensors="pt")
88
  input_ids = inputs.input_ids.to(device)
89
  attention_mask = inputs.attention_mask.to(device)
 
83
 
84
  def camembert_generate_summary(article_text):
85
  inputs = cmb_tokenizer([article_text], padding="max_length", truncation=True,
86
+ max_length=50,
87
  return_tensors="pt")
88
  input_ids = inputs.input_ids.to(device)
89
  attention_mask = inputs.attention_mask.to(device)