DrishtiSharma commited on
Commit
80b45ea
·
verified ·
1 Parent(s): b313e21

Update app1.py

Browse files
Files changed (1) hide show
  1. app1.py +2 -2
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:", ["Upload a PDF file", "Enter a PDF URL"], 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,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: