Demosthene-OR commited on
Commit
c3c8939
1 Parent(s): b49c7c6

Update modelisation_seq2seq_tab.py

Browse files
Files changed (1) hide show
  1. tabs/modelisation_seq2seq_tab.py +7 -0
tabs/modelisation_seq2seq_tab.py CHANGED
@@ -23,6 +23,7 @@ from tensorflow.keras.utils import plot_model
23
  from gtts import gTTS
24
  from extra_streamlit_components import tab_bar, TabBarItemData
25
  from translate_app import tr
 
26
 
27
  title = "Traduction Sequence à Sequence"
28
  sidebar_name = "Traduction Seq2Seq"
@@ -396,9 +397,15 @@ def run():
396
 
397
  st.write("## **"+tr("Résultats")+" :**\n")
398
  if (chosen_id == "tab1"):
 
399
  display_translation(n1, Lang,1)
 
 
400
  else:
 
401
  display_translation(n1, Lang,2)
 
 
402
 
403
  st.write("## **"+tr("Details sur la méthode")+" :**\n")
404
  if (chosen_id == "tab1"):
 
23
  from gtts import gTTS
24
  from extra_streamlit_components import tab_bar, TabBarItemData
25
  from translate_app import tr
26
+ import time
27
 
28
  title = "Traduction Sequence à Sequence"
29
  sidebar_name = "Traduction Seq2Seq"
 
397
 
398
  st.write("## **"+tr("Résultats")+" :**\n")
399
  if (chosen_id == "tab1"):
400
+ t0 = time.time()
401
  display_translation(n1, Lang,1)
402
+ t1 = time.time()
403
+ st.write("Durée: "+str(t1-t0))
404
  else:
405
+ t0 = time.time()
406
  display_translation(n1, Lang,2)
407
+ t1 = time.time()
408
+ st.write("Durée: "+str(t1-t0))
409
 
410
  st.write("## **"+tr("Details sur la méthode")+" :**\n")
411
  if (chosen_id == "tab1"):