Spaces:
Sleeping
Sleeping
adrianpierce
commited on
Commit
•
492193c
1
Parent(s):
01c6427
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,21 @@ st.set_page_config(layout="wide")
|
|
7 |
# Load the CSV file
|
8 |
df = pd.read_csv('spices_by_cuisine_with_all_flavors.csv', index_col=0)
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Create a graph
|
11 |
G = nx.Graph()
|
12 |
|
|
|
7 |
# Load the CSV file
|
8 |
df = pd.read_csv('spices_by_cuisine_with_all_flavors.csv', index_col=0)
|
9 |
|
10 |
+
|
11 |
+
pivot = spices_data.drop(columns=['Flavor Description']).rename(columns={"Unnamed: 0": "Spice"}).set_index('Spice')
|
12 |
+
|
13 |
+
spices = {}
|
14 |
+
for col in pivot.columns:
|
15 |
+
filter = pivot['Chinese'] == 1
|
16 |
+
spices[col] = pivot[filter].index.to_list()
|
17 |
+
|
18 |
+
|
19 |
+
option = st.selectbox(
|
20 |
+
'How would you like to be contacted?',['test', 'hello'])
|
21 |
+
|
22 |
+
st.write('You selected:', option)
|
23 |
+
|
24 |
+
|
25 |
# Create a graph
|
26 |
G = nx.Graph()
|
27 |
|