Spaces:
Sleeping
Sleeping
adrianpierce
commited on
Commit
·
b70c12c
1
Parent(s):
22f29b2
Update app.py
Browse files
app.py
CHANGED
@@ -40,17 +40,17 @@ col1, col2, col3 = st.columns(3)
|
|
40 |
with col1:
|
41 |
st.title('By Cuisine')
|
42 |
select_cuisine = st.selectbox('Select a cuisine to view the top 10 spices',cuisines.keys())
|
43 |
-
st.write(f'The top 10 ingredients in {
|
44 |
|
45 |
with col2:
|
46 |
st.title('By Spice')
|
47 |
select_spice = st.selectbox('Select a spice to view which cuisines it is present in',spices.keys())
|
48 |
-
st.write(f'{
|
49 |
|
50 |
with col3:
|
51 |
st.header("Similar cuisines")
|
52 |
select_cuisine_sim = st.selectbox('Select a cuisine to view most similar cuisines by spices',cuisines.keys())
|
53 |
-
st.write(f'{
|
54 |
|
55 |
|
56 |
|
|
|
40 |
with col1:
|
41 |
st.title('By Cuisine')
|
42 |
select_cuisine = st.selectbox('Select a cuisine to view the top 10 spices',cuisines.keys())
|
43 |
+
st.write(f'The top 10 ingredients in {select_cuisine} are:', cuisines[select_cuisine])
|
44 |
|
45 |
with col2:
|
46 |
st.title('By Spice')
|
47 |
select_spice = st.selectbox('Select a spice to view which cuisines it is present in',spices.keys())
|
48 |
+
st.write(f'{select_spice} is part of the following cuisines:', spices[select_spice])
|
49 |
|
50 |
with col3:
|
51 |
st.header("Similar cuisines")
|
52 |
select_cuisine_sim = st.selectbox('Select a cuisine to view most similar cuisines by spices',cuisines.keys())
|
53 |
+
st.write(f'{select_cuisine_sim} is part of the following cuisines:', cuisine_similarity[select_cuisine_sim].sort_values(ascending=False).index[1:])
|
54 |
|
55 |
|
56 |
|