Demosthene-OR commited on
Commit
fe8f7fb
·
1 Parent(s): 693d1fb
tabs/sentence_similarity_tab.py CHANGED
@@ -372,8 +372,8 @@ def run():
372
  proximite()
373
  '''
374
  sentences = ["This is an example sentence", "Each sentence is converted"]
375
- sentences[0] = st.text_area(label=tr("Saisir le texte à traduire"), value="This is an example sentence")
376
- sentences[1] = st.text_area(label=tr("Saisir le texte à traduire"), value="Each sentence is converted")
377
 
378
 
379
  model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
 
372
  proximite()
373
  '''
374
  sentences = ["This is an example sentence", "Each sentence is converted"]
375
+ sentences[0] = st.text_area(label=tr("Saisir le texte le texte de reference"), value="This is an example sentence")
376
+ sentences[1] = st.text_area(label=tr("Saisir le texte à comparer"), value="Each sentence is converted")
377
 
378
 
379
  model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
tabs/text2speech_tab.py CHANGED
@@ -20,7 +20,7 @@ if st.session_state.Cloud == 0:
20
  title = "Test 2 Speech"
21
  sidebar_name = "Text 2 Speech"
22
  dataPath = st.session_state.DataPath
23
-
24
  # Indiquer si l'on veut enlever les stop words. C'est un processus long
25
  stopwords_to_do = True
26
  # Indiquer si l'on veut lemmatiser les phrases, un fois les stop words enlevés. C'est un processus long (approximativement 8 minutes)
@@ -411,7 +411,7 @@ def run():
411
  if st.session_state.reCalcule:
412
  txt_fr, corpus_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr,sent_len_fr, sent_wo_sw_len_fr, sent_lem_len_fr = preprocess_txt (txt_fr,'fr')
413
  display_preprocess_results('fr', txt_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr)
414
-
415
 
416
 
417
 
 
20
  title = "Test 2 Speech"
21
  sidebar_name = "Text 2 Speech"
22
  dataPath = st.session_state.DataPath
23
+ '''
24
  # Indiquer si l'on veut enlever les stop words. C'est un processus long
25
  stopwords_to_do = True
26
  # Indiquer si l'on veut lemmatiser les phrases, un fois les stop words enlevés. C'est un processus long (approximativement 8 minutes)
 
411
  if st.session_state.reCalcule:
412
  txt_fr, corpus_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr,sent_len_fr, sent_wo_sw_len_fr, sent_lem_len_fr = preprocess_txt (txt_fr,'fr')
413
  display_preprocess_results('fr', txt_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr)
414
+ '''
415
 
416
 
417