markytools commited on
Commit
61022d4
·
1 Parent(s): bf505c6

updated pom file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,7 +23,7 @@ import pprint
23
  radioButtonList = ["E-commerce CSV (https://www.kaggle.com/datasets/mervemenekse/ecommerce-dataset)",
24
  "Upload my own CSV",
25
  "Upload my own PDF",
26
- "URL Chat with Google Alphabet's 2022 Q2 Earnings Report (https://tinyurl.com/f85wujsj)",
27
  "Enter my own URL"]
28
  genre = st.radio(
29
  "Choose dataset to finetune", radioButtonList, index=0
@@ -50,7 +50,7 @@ elif genre==radioButtonList[2]:
50
  pdfCSVURLText = "PDF"
51
  elif genre==radioButtonList[3]:
52
  pdfCSVURLText = "URL"
53
- urls = ['https://www.sec.gov/Archives/edgar/data/1652044/000165204422000071/goog-20220630.htm',]
54
  loader = [UnstructuredURLLoader(urls=urls)]
55
  index = VectorstoreIndexCreator(
56
  embedding=GooglePalmEmbeddings(),
@@ -64,7 +64,7 @@ elif genre==radioButtonList[4]:
64
  pdfCSVURLText = "URL"
65
 
66
  isCustomURL = genre==radioButtonList[4]
67
- urlInput = st.text_input('Enter your own URL', '', placeholder="Type your URL here (e.g. https://tinyurl.com/f85wujsj)", disabled=not isCustomURL)
68
 
69
  isCustomPDF = genre==radioButtonList[1] or genre==radioButtonList[2]
70
  uploaded_file = st.file_uploader(f"Upload your own {pdfCSVURLText} here", type=pdfCSVURLText.lower(), disabled=not isCustomPDF)
 
23
  radioButtonList = ["E-commerce CSV (https://www.kaggle.com/datasets/mervemenekse/ecommerce-dataset)",
24
  "Upload my own CSV",
25
  "Upload my own PDF",
26
+ "URL Chat with Google Alphabet's 2022 Q2 Earnings Report (https://tinyurl.com/sbdxyt3t)",
27
  "Enter my own URL"]
28
  genre = st.radio(
29
  "Choose dataset to finetune", radioButtonList, index=0
 
50
  pdfCSVURLText = "PDF"
51
  elif genre==radioButtonList[3]:
52
  pdfCSVURLText = "URL"
53
+ urls = ['https://finance.yahoo.com/quote/GOOG/financials?p=GOOG',]
54
  loader = [UnstructuredURLLoader(urls=urls)]
55
  index = VectorstoreIndexCreator(
56
  embedding=GooglePalmEmbeddings(),
 
64
  pdfCSVURLText = "URL"
65
 
66
  isCustomURL = genre==radioButtonList[4]
67
+ urlInput = st.text_input('Enter your own URL', '', placeholder="Type your URL here (e.g. https://tinyurl.com/sbdxyt3t)", disabled=not isCustomURL)
68
 
69
  isCustomPDF = genre==radioButtonList[1] or genre==radioButtonList[2]
70
  uploaded_file = st.file_uploader(f"Upload your own {pdfCSVURLText} here", type=pdfCSVURLText.lower(), disabled=not isCustomPDF)