Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,17 +33,20 @@ def final_result(pdf_file, search_term):
|
|
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...")
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
47 |
with col2:
|
48 |
if all_data:
|
49 |
if input_file is not None and search_term.strip() != "":
|
|
|
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 |
+
col3, col4 = st.columns()
|
37 |
|
38 |
with col1:
|
39 |
input_file = st.file_uploader(label="Upload .pdf File", type='pdf')
|
40 |
search_term = st.text_input(label="Enter Search-term", placeholder="Search here...")
|
41 |
+
col3, col4 = st.columns(spec=[0.4,0.6])
|
42 |
+
with col4:
|
43 |
+
all_data = st.button("Submit")
|
44 |
+
with col4:
|
45 |
+
st.write("")
|
46 |
+
clear_button = st.button("Clear")
|
47 |
+
if clear_button:
|
48 |
+
input_file = None
|
49 |
+
search_term = ""
|
50 |
with col2:
|
51 |
if all_data:
|
52 |
if input_file is not None and search_term.strip() != "":
|