Update app.py
Browse files
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
|
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 |
|