suriya7 commited on
Commit
a8b594a
1 Parent(s): 5fd8183

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,11 +109,11 @@ with st.sidebar:
109
  with st.spinner("Processing..."):
110
  if uploaded_files:
111
  pdf_text = get_pdf_text(uploaded_files)
112
- st.session_state["docs"] = (st.session_state.get("docs", "") + pdf_text).strip()
113
 
114
  if uploaded_url:
115
  url_text = get_url_text(uploaded_url)
116
- st.session_state["docs"] = (st.session_state.get("docs", "") + url_text).strip()
117
 
118
  st.success("Processing complete!")
119
  else:
 
109
  with st.spinner("Processing..."):
110
  if uploaded_files:
111
  pdf_text = get_pdf_text(uploaded_files)
112
+ st.session_state["docs"] += get_pdf_text(uploaded_files)
113
 
114
  if uploaded_url:
115
  url_text = get_url_text(uploaded_url)
116
+ st.session_state["extracted_text"] += get_url_text(uploaded_url)
117
 
118
  st.success("Processing complete!")
119
  else: