Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,15 +17,23 @@ def main():
|
|
| 17 |
company_logo_path = 'td-logo.png'
|
| 18 |
st.sidebar.image(company_logo_path, width=50)
|
| 19 |
st.sidebar.title("Upload PDF")
|
| 20 |
-
st.sidebar.write("Download Demo PDF file from Below....")
|
| 21 |
-
with open("Kia_EV6.pdf", "rb") as file:
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
uploaded_file = st.sidebar.file_uploader("Choose a PDF file", type="pdf")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
if uploaded_file is not None:
|
| 30 |
st.sidebar.success("File uploaded successfully.")
|
| 31 |
vector_store = PDF_4_QA(uploaded_file)
|
|
|
|
| 17 |
company_logo_path = 'td-logo.png'
|
| 18 |
st.sidebar.image(company_logo_path, width=50)
|
| 19 |
st.sidebar.title("Upload PDF")
|
| 20 |
+
# st.sidebar.write("Download Demo PDF file from Below....")
|
| 21 |
+
# with open("Kia_EV6.pdf", "rb") as file:
|
| 22 |
+
# btn = st.sidebar.download_button(
|
| 23 |
+
# label="Download PDF",
|
| 24 |
+
# data=file,
|
| 25 |
+
# file_name="Kia_EV6.pdf"
|
| 26 |
+
# )
|
| 27 |
|
| 28 |
uploaded_file = st.sidebar.file_uploader("Choose a PDF file", type="pdf")
|
| 29 |
+
|
| 30 |
+
api_input = st.text_input(
|
| 31 |
+
"Enter The API KEY 👇",
|
| 32 |
+
label_visibility="hidden",
|
| 33 |
+
disabled=st.session_state.disabled,
|
| 34 |
+
placeholder=st.session_state.placeholder,
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
if uploaded_file is not None:
|
| 38 |
st.sidebar.success("File uploaded successfully.")
|
| 39 |
vector_store = PDF_4_QA(uploaded_file)
|