Spaces:
Build error
Build error
Commit ·
d2872d0
1
Parent(s): 980beb7
updated pom file
Browse files61 unmodified lines6263646566675 unmodified lines737475767778798061 unmodified linesinput_key="question")elif genre==radioButtonList[4]:pdfCSVURLText = "URL"urls = [urlInput]loader = [UnstructuredURLLoader(urls=urls)]index = VectorstoreIndexCreator(5 unmodified linesretriever=index.vectorstore.as_retriever(),input_key="question")isCustomURL = genre==radioButtonList[4]urlInput = st.text_input('Enter your own URL', '', placeholder="Type your URL here (e.g. https://abc.xyz/investor/)", disabled=not isCustomURL)isCustomPDF = genre==radioButtonList[1] or genre==radioButtonList[2]uploaded_file = st.file_uploader(f"Upload your own {pdfCSVURLText} here", type=pdfCSVURLText.lower(), disabled=not isCustomPDF)61 unmodified lines626364656667685 unmodified lines7475767778798061 unmodified linesinput_key="question")elif genre==radioButtonList[4]:pdfCSVURLText = "URL"urlInput = st.text_input('Enter your own URL', '', placeholder="Type your URL here (e.g. https://abc.xyz/investor/)", disabled=not isCustomURL)urls = [urlInput]loader = [UnstructuredURLLoader(urls=urls)]index = VectorstoreIndexCreator(5 unmodified linesretriever=index.vectorstore.as_retriever(),input_key="question")# isCustomURL = genre==radioButtonList[4]isCustomPDF = genre==radioButtonList[1] or genre==radioButtonList[2]uploaded_file = st.file_uploader(f"Upload your own {pdfCSVURLText} here", type=pdfCSVURLText.lower(), disabled=not isCustomPDF)
app.py+2-2