JJFrancisco commited on
Commit
c85b0b5
1 Parent(s): 5a542b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -39,11 +39,16 @@ model_dir_gl_ca = ""
39
  print("Downloading model ca-gl...")
40
  model_dir_ca_gl = download_model("proxectonos/Nos_MT-OpenNMT-ca-gl", revision="main")
41
  """
 
42
  model_dir_gl_es = model_dir_es_gl = model_dir_gl_en = model_dir_en_gl = model_dir_gl_ca = model_dir_gl_eu= " "
43
  print("Downloading model ca-gl...")
44
  model_dir_ca_gl = download_model("proxectonos/Nos_MT-OpenNMT-ca-gl", revision="main")
45
  print("Downloading model eu-gl...")
46
  model_dir_eu_gl = download_model("proxectonos/Nos_MT-OpenNMT-eu-gl", revision="main")
 
 
 
 
47
  print("Models downloaded correctly!")
48
  print(f"{os.path.join(MODELS_PATH, model_dir_eu_gl)}")
49
  print(os.listdir(f"{os.path.join(MODELS_PATH, model_dir_eu_gl)}"))
 
39
  print("Downloading model ca-gl...")
40
  model_dir_ca_gl = download_model("proxectonos/Nos_MT-OpenNMT-ca-gl", revision="main")
41
  """
42
+
43
  model_dir_gl_es = model_dir_es_gl = model_dir_gl_en = model_dir_en_gl = model_dir_gl_ca = model_dir_gl_eu= " "
44
  print("Downloading model ca-gl...")
45
  model_dir_ca_gl = download_model("proxectonos/Nos_MT-OpenNMT-ca-gl", revision="main")
46
  print("Downloading model eu-gl...")
47
  model_dir_eu_gl = download_model("proxectonos/Nos_MT-OpenNMT-eu-gl", revision="main")
48
+ print("Downloading model gl-en...")
49
+ model_dir_gl_en = download_model("proxectonos/Nos_MT-OpenNMT-gl-en", revision="main")
50
+ print("Downloading model en-gl...")
51
+ model_dir_en_gl = download_model("proxectonos/Nos_MT-OpenNMT-en-gl", revision="main")
52
  print("Models downloaded correctly!")
53
  print(f"{os.path.join(MODELS_PATH, model_dir_eu_gl)}")
54
  print(os.listdir(f"{os.path.join(MODELS_PATH, model_dir_eu_gl)}"))