File size: 764 Bytes
5b68c01
4df9e3a
 
 
 
 
 
 
 
 
 
 
 
 
da18950
63af794
4df9e3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import streamlit as st # type: ignore
import os
import pandas as pd
import collections
from ast import literal_eval
from translate_app import tr
if st.session_state.Cloud == 0:
    import contextlib
    import warnings
    warnings.filterwarnings('ignore')
# from PIL import Image
# import time
# import random

title = "Speech 2 Text"
sidebar_name = "Speech 2 Text"
dataPath = st.session_state.DataPath

def run():
    global max_lines, first_line, last_line, lemmatize_to_do, stopwords_to_do
    global full_txt_en, full_txt_split_en, full_txt_lem_en, full_txt_wo_stopword_en, full_df_count_word_en
    global full_txt_fr, full_txt_split_fr, full_txt_lem_fr, full_txt_wo_stopword_fr, full_df_count_word_fr
    
    st.write("")
    st.title(tr(title))