Spaces:
Build error
Build error
Update LoadData.py
Browse files- LoadData.py +2 -2
LoadData.py
CHANGED
|
@@ -3,14 +3,14 @@ import streamlit as st
|
|
| 3 |
def main():
|
| 4 |
st.set_page_config("")
|
| 5 |
st.set_page_config(page_title="Dump PDF to Pinecone - Vector Store")
|
| 6 |
-
st.title("
|
| 7 |
|
| 8 |
# Upload the pdf
|
| 9 |
pdf = st.file_uploader("Only PDF format", type=["pdf"])
|
| 10 |
|
| 11 |
# Extract the whole text from the uploaded pdf file
|
| 12 |
if pdf is not None:
|
| 13 |
-
with st.spinner('
|
| 14 |
text=read_pdf_data(pdf)
|
| 15 |
st.write("Reading PDF complete")
|
| 16 |
|
|
|
|
| 3 |
def main():
|
| 4 |
st.set_page_config("")
|
| 5 |
st.set_page_config(page_title="Dump PDF to Pinecone - Vector Store")
|
| 6 |
+
st.title("Upload your files ")
|
| 7 |
|
| 8 |
# Upload the pdf
|
| 9 |
pdf = st.file_uploader("Only PDF format", type=["pdf"])
|
| 10 |
|
| 11 |
# Extract the whole text from the uploaded pdf file
|
| 12 |
if pdf is not None:
|
| 13 |
+
with st.spinner('Loading'):
|
| 14 |
text=read_pdf_data(pdf)
|
| 15 |
st.write("Reading PDF complete")
|
| 16 |
|