Spaces:
Sleeping
Sleeping
Update app.py
Browse files11 unmodified lines121314151617181920216 unmodified lines282930313233343511 unmodified linesapp_mode = st.sidebar.selectbox("Options",["Analyze Text", "Analyze CSV"])if app_mode == "Analyze Text":with st.expander('Analyze Text'):text = st.text_input('Text here: ')if text:blob = TextBlob(text)6 unmodified linescleaned_text=cleantext.clean(pre, extra_spaces=True ,stopwords=True ,lowercase=True ,numbers=True , punct=True)st.write(cleaned_text)else:with st.expander('Analyze CSV'):upl = st.file_uploader('Upload file')def score(x):11 unmodified lines12131415161718196 unmodified lines262728293031323311 unmodified linesapp_mode = st.sidebar.selectbox("Options",["Analyze Text", "Analyze CSV"])if app_mode == "Analyze Text":with st.expander('Analyze Text'):text = st.text_input('Text here: ')if text:blob = TextBlob(text)6 unmodified linescleaned_text=cleantext.clean(pre, extra_spaces=True ,stopwords=True ,lowercase=True ,numbers=True , punct=True)st.write(cleaned_text)else:with st.expander('Analyze CSV'):upl = st.file_uploader('Upload file')def score(x):
app.py+4-6