Demosthene-OR commited on
Commit
5c0ccb2
1 Parent(s): 8b0ebfb

Update modelisation_seq2seq_tab.py

Browse files
Files changed (1) hide show
  1. tabs/modelisation_seq2seq_tab.py +1 -1
tabs/modelisation_seq2seq_tab.py CHANGED
@@ -283,8 +283,8 @@ def display_translation(n1, Lang,model_type):
283
  s_trad_ref = df_data_tgt.iloc[n1:n1+5][0].tolist()
284
  source = Lang[:2]
285
  target = Lang[-2:]
286
- params = {"lang_tgt": target, "texte": s[i]}
287
  for i in range(3):
 
288
  if model_type==1:
289
  # URL de votre endpoint FastAPI avec les paramètres de requête
290
  url = "https://demosthene-or-api-avr23-cds-translation.hf.space/small_vocab/rnn"
 
283
  s_trad_ref = df_data_tgt.iloc[n1:n1+5][0].tolist()
284
  source = Lang[:2]
285
  target = Lang[-2:]
 
286
  for i in range(3):
287
+ params = {"lang_tgt": target, "texte": s[i]}
288
  if model_type==1:
289
  # URL de votre endpoint FastAPI avec les paramètres de requête
290
  url = "https://demosthene-or-api-avr23-cds-translation.hf.space/small_vocab/rnn"