Gladiator commited on
Commit
0f104d5
1 Parent(s): 4f61664

center or option

Browse files
Files changed (2) hide show
  1. app.py +4 -10
  2. test.py +4 -5
app.py CHANGED
@@ -31,16 +31,10 @@ if __name__ == "__main__":
31
  # ---------------------------
32
 
33
  inp_text = st.text_input("Enter text or a url here")
34
- col1, col2, col3 = st.beta_columns([1, 6, 1])
35
-
36
- with col1:
37
- st.write("")
38
-
39
- with col2:
40
- st.subheader("----- OR -----")
41
-
42
- with col3:
43
- st.write("")
44
  uploaded_file = st.file_uploader(
45
  "Upload a .txt, .pdf, .word file for summarization"
46
  )
 
31
  # ---------------------------
32
 
33
  inp_text = st.text_input("Enter text or a url here")
34
+ st.markdown(
35
+ "<h3 style='text-align: center; color: red;'>OR</h3>",
36
+ unsafe_allow_html=True,
37
+ )
 
 
 
 
 
 
38
  uploaded_file = st.file_uploader(
39
  "Upload a .txt, .pdf, .word file for summarization"
40
  )
test.py CHANGED
@@ -19,8 +19,7 @@ if __name__ == "__main__":
19
  st.header("Testing file uploads")
20
 
21
  uploaded_file = st.file_uploader("Upload a file here")
22
-
23
- st.write(uploaded_file.type)
24
- docx_text = docx2txt.process(uploaded_file)
25
-
26
- st.write(docx_text)
 
19
  st.header("Testing file uploads")
20
 
21
  uploaded_file = st.file_uploader("Upload a file here")
22
+ st.markdown(
23
+ "<h3 style='text-align: center; color: red;'>OR</h3>",
24
+ unsafe_allow_html=True,
25
+ )