IinjyI commited on
Commit
777b18c
1 Parent(s): bb192cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def summarize(text):
112
  def translate(text):
113
  summarized = summarize(text)
114
  tokenized = tokenizer([summarized], return_tensors='np')
115
- out = model.generate(**tokenized, max_length=128)
116
  arabic = tokenizer.decode(out[0], skip_special_tokens=True)
117
  return arabic
118
 
 
112
  def translate(text):
113
  summarized = summarize(text)
114
  tokenized = tokenizer([summarized], return_tensors='np')
115
+ out = model.generate(**tokenized)
116
  arabic = tokenizer.decode(out[0], skip_special_tokens=True)
117
  return arabic
118