Spaces:
Runtime error
Runtime error
Salmaelbarbori
commited on
Commit
·
fe2e91a
1
Parent(s):
14fbda7
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def translation(text):
|
|
13 |
#inference
|
14 |
inputs = tokenizer("translate to arabic : " + text, return_tensors="pt")
|
15 |
output = model.generate(**inputs)
|
16 |
-
output = tokenizer.decode(output.cpu().numpy()[0]
|
17 |
|
18 |
return output
|
19 |
|
|
|
13 |
#inference
|
14 |
inputs = tokenizer("translate to arabic : " + text, return_tensors="pt")
|
15 |
output = model.generate(**inputs)
|
16 |
+
output = tokenizer.decode(output.cpu().numpy()[0])
|
17 |
|
18 |
return output
|
19 |
|