Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
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,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...")
|