Demosthene-OR
commited on
Commit
•
d5e3bb4
1
Parent(s):
bb7c241
Update modelisation_seq2seq_tab.py
Browse files
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}/small_vocab/rnn?lang_tgt={target}&texte={s[i]}"
|
118 |
else:
|
119 |
-
url = f"https://demosthene-or-api-avr23-cds-translation{i}/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}/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:
|