Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,7 +66,7 @@ def extract_metadata(pdf_path):
|
|
| 66 |
return title, author, email_str, affiliation_str
|
| 67 |
|
| 68 |
# ----------------- PDF Selection -----------------
|
| 69 |
-
pdf_source = st.radio("
|
| 70 |
|
| 71 |
if pdf_source == "Upload a PDF file":
|
| 72 |
uploaded_file = st.file_uploader("Upload your PDF file", type=["pdf"])
|
|
|
|
| 66 |
return title, author, email_str, affiliation_str
|
| 67 |
|
| 68 |
# ----------------- PDF Selection -----------------
|
| 69 |
+
pdf_source = st.radio("Upload or provide a link to a PDF:", ["Upload a PDF file", "Enter a PDF URL"], index=0, horizontal=True)
|
| 70 |
|
| 71 |
if pdf_source == "Upload a PDF file":
|
| 72 |
uploaded_file = st.file_uploader("Upload your PDF file", type=["pdf"])
|