GiladtheFixer commited on
Commit
61ef2ea
1 Parent(s): 375e552

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- else if number==2:
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'