Spaces:
Running
Running
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)) | |