johnpaulbin commited on
Commit
fbac3b2
·
verified ·
1 Parent(s): 5c791f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -30,6 +30,12 @@ def translate(direction, text):
30
  elif direction == "Spanish to English":
31
  source_lang = "SPANISH"
32
  target_lang = "ENGLISH"
 
 
 
 
 
 
33
  else:
34
  return "Invalid direction"
35
 
 
30
  elif direction == "Spanish to English":
31
  source_lang = "SPANISH"
32
  target_lang = "ENGLISH"
33
+ elif direction == "Korean to English":
34
+ source_lang = "KOREAN"
35
+ target_lang = "ENGLISH"
36
+ elif direction == "English to Korean":
37
+ source_lang = "ENGLISH"
38
+ target_lang = "KOREAN"
39
  else:
40
  return "Invalid direction"
41