Spaces:
Runtime error
Runtime error
GiladtheFixer
commited on
Commit
•
61ef2ea
1
Parent(s):
375e552
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from transformers import pipeline
|
|
8 |
def translate(text,number):
|
9 |
if number==1:
|
10 |
model='Helsinki-NLP/opus-mt-en-es'
|
11 |
-
|
12 |
model='Helsinki-NLP/opus-mt-en-fr'
|
13 |
else:
|
14 |
model='Helsinki-NLP/opus-mt-en-ru'
|
|
|
8 |
def translate(text,number):
|
9 |
if number==1:
|
10 |
model='Helsinki-NLP/opus-mt-en-es'
|
11 |
+
elif number==2:
|
12 |
model='Helsinki-NLP/opus-mt-en-fr'
|
13 |
else:
|
14 |
model='Helsinki-NLP/opus-mt-en-ru'
|