Spaces:
Build error
Build error
Update app1.py
Browse files
app1.py
CHANGED
@@ -42,7 +42,7 @@ if "vector_created" not in st.session_state:
|
|
42 |
st.title("Blah-2")
|
43 |
|
44 |
# Step 1: Choose PDF Source
|
45 |
-
pdf_source = st.radio("Upload or provide a link to a PDF:", ["
|
46 |
|
47 |
if pdf_source == "Upload a PDF file":
|
48 |
uploaded_file = st.file_uploader("Upload your PDF file", type="pdf")
|
@@ -55,7 +55,7 @@ if pdf_source == "Upload a PDF file":
|
|
55 |
st.session_state.vector_created = False
|
56 |
|
57 |
elif pdf_source == "Enter a PDF URL":
|
58 |
-
pdf_url = st.text_input("Enter PDF URL:")
|
59 |
if pdf_url and not st.session_state.pdf_path:
|
60 |
with st.spinner("Downloading PDF..."):
|
61 |
try:
|
|
|
42 |
st.title("Blah-2")
|
43 |
|
44 |
# Step 1: Choose PDF Source
|
45 |
+
pdf_source = st.radio("Upload or provide a link to a PDF:", ["Enter a PDF URL", "Upload a PDF file"], index=0, horizontal=True)
|
46 |
|
47 |
if pdf_source == "Upload a PDF file":
|
48 |
uploaded_file = st.file_uploader("Upload your PDF file", type="pdf")
|
|
|
55 |
st.session_state.vector_created = False
|
56 |
|
57 |
elif pdf_source == "Enter a PDF URL":
|
58 |
+
pdf_url = st.text_input("Enter PDF URL:", value = "https://arxiv.org/pdf/2406.06998")
|
59 |
if pdf_url and not st.session_state.pdf_path:
|
60 |
with st.spinner("Downloading PDF..."):
|
61 |
try:
|