RP-Azul commited on
Commit
0ae15e7
·
verified ·
1 Parent(s): 59881ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import streamlit as st
2
- import re
3
  from io import BytesIO
4
  import PyPDF2
5
  import docx2txt
@@ -35,7 +34,7 @@ if input_type == "PDF":
35
  raw_text = extract_pdf_text(uploaded_file)
36
  single_line = format_single_line(raw_text)
37
  st.subheader("📜 PDF Text as One Line")
38
- st.text_area("All content in one line", single_line, height=150))
39
 
40
  elif input_type == "Word Document":
41
  uploaded_file = st.file_uploader("Upload a DOCX file", type=["docx"])
@@ -56,6 +55,3 @@ elif input_type == "Text":
56
 
57
  else:
58
  st.info("Please select an input type to get started.")
59
-
60
-
61
-
 
1
  import streamlit as st
 
2
  from io import BytesIO
3
  import PyPDF2
4
  import docx2txt
 
34
  raw_text = extract_pdf_text(uploaded_file)
35
  single_line = format_single_line(raw_text)
36
  st.subheader("📜 PDF Text as One Line")
37
+ st.text_area("All content in one line", single_line, height=150)
38
 
39
  elif input_type == "Word Document":
40
  uploaded_file = st.file_uploader("Upload a DOCX file", type=["docx"])
 
55
 
56
  else:
57
  st.info("Please select an input type to get started.")