Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import streamlit as st
|
|
2 |
import PyPDF2
|
3 |
from io import BytesIO
|
4 |
|
|
|
|
|
5 |
def search_pdf(pdf_file, search_term):
|
6 |
with BytesIO(pdf_file.read()) as file:
|
7 |
reader = PyPDF2.PdfReader(file)
|
@@ -28,7 +30,7 @@ def final_result(pdf_file, search_term):
|
|
28 |
|
29 |
|
30 |
# st.markdown("<h3 style='text-align:center; font-size:24px;'>Search in PDF</h3>", unsafe_allow_html=True)
|
31 |
-
|
32 |
col1, col2 = st.columns(spec=[0.4,0.6])
|
33 |
|
34 |
st.set_page_config(layout="wide")
|
|
|
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:
|
9 |
reader = PyPDF2.PdfReader(file)
|
|
|
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")
|