Spaces:
Sleeping
Sleeping
Update app.py
Browse files4 unmodified lines567891011121337 unmodified lines5152535455564 unmodified linesimport streamlit as stimport cleantextdef clean_text(text):text = text.replace("''", "").replace("-\n", "").replace("\n", " ").strip()return text#def clean_text(text):37 unmodified linesst.subheader("Clean Text")text = st.text_area("Paste text here")button1 = st.button("clean text")if button1:st.write(text)clean = clean_text(text)4 unmodified lines56789101137 unmodified lines49505152535455565758594 unmodified linesimport streamlit as stimport cleantext#def clean_text(text):37 unmodified linesst.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)
app.py+6-3