markytools commited on
Commit
d2872d0
·
1 Parent(s): 980beb7

updated pom file

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,6 +62,7 @@ elif genre==radioButtonList[3]:
62
  input_key="question")
63
  elif genre==radioButtonList[4]:
64
  pdfCSVURLText = "URL"
 
65
  urls = [urlInput]
66
  loader = [UnstructuredURLLoader(urls=urls)]
67
  index = VectorstoreIndexCreator(
@@ -73,8 +74,7 @@ elif genre==radioButtonList[4]:
73
  retriever=index.vectorstore.as_retriever(),
74
  input_key="question")
75
 
76
- isCustomURL = genre==radioButtonList[4]
77
- urlInput = st.text_input('Enter your own URL', '', placeholder="Type your URL here (e.g. https://abc.xyz/investor/)", disabled=not isCustomURL)
78
 
79
  isCustomPDF = genre==radioButtonList[1] or genre==radioButtonList[2]
80
  uploaded_file = st.file_uploader(f"Upload your own {pdfCSVURLText} here", type=pdfCSVURLText.lower(), disabled=not isCustomPDF)
 
62
  input_key="question")
63
  elif genre==radioButtonList[4]:
64
  pdfCSVURLText = "URL"
65
+ urlInput = st.text_input('Enter your own URL', '', placeholder="Type your URL here (e.g. https://abc.xyz/investor/)", disabled=not isCustomURL)
66
  urls = [urlInput]
67
  loader = [UnstructuredURLLoader(urls=urls)]
68
  index = VectorstoreIndexCreator(
 
74
  retriever=index.vectorstore.as_retriever(),
75
  input_key="question")
76
 
77
+ # isCustomURL = genre==radioButtonList[4]
 
78
 
79
  isCustomPDF = genre==radioButtonList[1] or genre==radioButtonList[2]
80
  uploaded_file = st.file_uploader(f"Upload your own {pdfCSVURLText} here", type=pdfCSVURLText.lower(), disabled=not isCustomPDF)