mattritchey commited on
Commit
61a050d
·
1 Parent(s): 42bd64f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -9,13 +9,16 @@ from yolopandas import pd
9
  # import pandas as pd
10
  import streamlit as st
11
 
12
- uploaded_file = st.file_uploader("Choose a file")
13
-
14
- try:
15
- df=pd.read_csv(uploaded_file)
16
- df
17
- query_text = st.text_input("","Question")
18
- df.llm.query(query_text, yolo=True)
19
- except:
20
- st.header('Upload a CSV to Ask It Questions')
 
21
 
 
 
 
9
  # import pandas as pd
10
  import streamlit as st
11
 
12
+ product_df = pd.DataFrame(
13
+ [
14
+ {"name": "The Da Vinci Code", "type": "book", "price": 15, "quantity": 300, "rating": 4},
15
+ {"name": "Jurassic Park", "type": "book", "price": 12, "quantity": 400, "rating": 4.5},
16
+ {"name": "Jurassic Park", "type": "film", "price": 8, "quantity": 6, "rating": 5},
17
+ {"name": "Matilda", "type": "book", "price": 5, "quantity": 80, "rating": 4},
18
+ {"name": "Clockwork Orange", "type": None, "price": None, "quantity": 20, "rating": 4},
19
+ {"name": "Walden", "type": None, "price": None, "quantity": 100, "rating": 4.5},
20
+ ],
21
+ )
22
 
23
+ product_df
24
+ product_df.llm.query("Impute the type column with random fruits.")