Spaces:
Sleeping
Sleeping
Update app.py
Browse files44 unmodified lines45464748495051525354555657585944 unmodified linesstopwords=True ,lowercase=True ,numbers=True , punct=True)st.write(cleaned_text)elif app_mode == "Clean Text":st.subheader("Clean Text")text = st.text_area("Paste text here")button1 = st.button("clean text")def clean_text(text):text = text.replace("''", "").replace("-\n", "").replace("\n", " ").strip()return textif button1:st.write(text)clean = clean_text(text)44 unmodified lines454647484950515253545556575844 unmodified linesstopwords=True ,lowercase=True ,numbers=True , punct=True)st.write(cleaned_text)def clean_text(text):text = text.replace("''", "").replace("-\n", "").replace("\n", " ").strip()return textelif app_mode == "Clean Text":st.subheader("Clean Text")text = st.text_area("Paste text here")button1 = st.button("clean text")if button1:st.write(text)clean = clean_text(text)
app.py+4-5