Demosthene-OR commited on
Commit
2081ea7
1 Parent(s): d5e3bb4

Update modelisation_seq2seq_tab.py

Browse files
Files changed (1) hide show
  1. tabs/modelisation_seq2seq_tab.py +2 -2
tabs/modelisation_seq2seq_tab.py CHANGED
@@ -114,9 +114,9 @@ def display_translation2(n1, Lang, model_type):
114
  # Construction de l'URL avec les paramètres
115
  # url = f"{url_base}{i}?lang_tgt={target}&texte={s[i]}"
116
  if model_type == 1:
117
- url = f"https://demosthene-or-api-avr23-cds-translation{i+1}/small_vocab/rnn?lang_tgt={target}&texte={s[i]}"
118
  else:
119
- url = f"https://demosthene-or-api-avr23-cds-translation{i+1}/small_vocab/transformer?lang_tgt={target}&texte={s[i]}"
120
  params.append(url)
121
  '''
122
  with Pool(n) as p:
 
114
  # Construction de l'URL avec les paramètres
115
  # url = f"{url_base}{i}?lang_tgt={target}&texte={s[i]}"
116
  if model_type == 1:
117
+ url = f"https://demosthene-or-api-avr23-cds-translation{i+1}.hf.space/small_vocab/rnn?lang_tgt={target}&texte={s[i]}"
118
  else:
119
+ url = f"https://demosthene-or-api-avr23-cds-translation{i+1}.hf.space/small_vocab/transformer?lang_tgt={target}&texte={s[i]}"
120
  params.append(url)
121
  '''
122
  with Pool(n) as p: