Gladiator commited on
Commit
3e73eb6
1 Parent(s): 12c89e3

center or subheader

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -31,8 +31,16 @@ if __name__ == "__main__":
31
  # ---------------------------
32
 
33
  inp_text = st.text_input("Enter text or a url here")
 
34
 
35
- st.subheader("----- OR -----")
 
 
 
 
 
 
 
36
  uploaded_file = st.file_uploader(
37
  "Upload a .txt, .pdf, .word file for summarization"
38
  )
@@ -43,6 +51,7 @@ if __name__ == "__main__":
43
  text, clean_txt = fetch_article_text(url=inp_text)
44
  elif uploaded_file:
45
  clean_txt = read_text_from_file(uploaded_file)
 
46
  else:
47
  clean_txt = clean_text(inp_text)
48
 
 
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
  )
 
51
  text, clean_txt = fetch_article_text(url=inp_text)
52
  elif uploaded_file:
53
  clean_txt = read_text_from_file(uploaded_file)
54
+ clean_txt = clean_text(inp_text)
55
  else:
56
  clean_txt = clean_text(inp_text)
57