Vihang28 commited on
Commit
bacffa7
·
verified ·
1 Parent(s): 6acdb94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import PyPDF2
3
  from io import BytesIO
4
 
5
- st.set_page_config(page_title="Search in PDF", layout="wide",initial_sidebar_state="expanded")
6
 
7
  def search_pdf(pdf_file, search_term):
8
  with BytesIO(pdf_file.read()) as file:
@@ -30,10 +30,10 @@ def final_result(pdf_file, search_term):
30
 
31
 
32
  # st.markdown("<h3 style='text-align:center; font-size:24px;'>Search in PDF</h3>", unsafe_allow_html=True)
 
33
 
34
  col1, col2 = st.columns(spec=[0.4,0.6])
35
 
36
- st.set_page_config(layout="wide")
37
  with col1:
38
  input_file = st.file_uploader(label="Upload .pdf File", type='pdf')
39
  search_term = st.text_input(label="Enter Search-term", placeholder="Search here...")
 
2
  import PyPDF2
3
  from io import BytesIO
4
 
5
+
6
 
7
  def search_pdf(pdf_file, search_term):
8
  with BytesIO(pdf_file.read()) as file:
 
30
 
31
 
32
  # st.markdown("<h3 style='text-align:center; font-size:24px;'>Search in PDF</h3>", unsafe_allow_html=True)
33
+ st.set_page_config(page_title="Search in PDF", layout="wide",initial_sidebar_state="expanded")
34
 
35
  col1, col2 = st.columns(spec=[0.4,0.6])
36
 
 
37
  with col1:
38
  input_file = st.file_uploader(label="Upload .pdf File", type='pdf')
39
  search_term = st.text_input(label="Enter Search-term", placeholder="Search here...")