hassiahk commited on
Commit
106ef84
β€’
1 Parent(s): a20d82c

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +4 -4
server.py CHANGED
@@ -30,16 +30,16 @@ with st.spinner('Loading model...'):
30
  # st.image("images/chef-transformer.png", width=400)
31
  st.header("Chef Transformer πŸ‘©β€πŸ³ / πŸ‘¨β€πŸ³")
32
  st.markdown(
33
- "This demo uses [T5 trained on recipe-nlg](https://huggingface.co/flax-community/t5-recipe-generation) "
34
  "to generate recipe from a given set of ingredients"
35
  )
36
  img = st.sidebar.image("images/chef-transformer-transparent.png", width=310)
37
- add_text_sidebar = st.sidebar.title("Popular recipes:")
38
  add_text_sidebar = st.sidebar.text("Recipe preset(example#1)")
39
  add_text_sidebar = st.sidebar.text("Recipe preset(example#2)")
40
 
41
- add_text_sidebar = st.sidebar.title("Mode:")
42
- sampling_mode = st.sidebar.selectbox("select a Mode", index=0, options=["Top Sampling", "Beam Search"])
43
 
44
  original_keywords = st.multiselect(
45
  "Choose ingredients",
 
30
  # st.image("images/chef-transformer.png", width=400)
31
  st.header("Chef Transformer πŸ‘©β€πŸ³ / πŸ‘¨β€πŸ³")
32
  st.markdown(
33
+ "This demo uses [T5 trained on RecipeNLG](https://huggingface.co/flax-community/t5-recipe-generation) "
34
  "to generate recipe from a given set of ingredients"
35
  )
36
  img = st.sidebar.image("images/chef-transformer-transparent.png", width=310)
37
+ add_text_sidebar = st.sidebar.title("Popular Recipes")
38
  add_text_sidebar = st.sidebar.text("Recipe preset(example#1)")
39
  add_text_sidebar = st.sidebar.text("Recipe preset(example#2)")
40
 
41
+ add_text_sidebar = st.sidebar.title("Mode")
42
+ sampling_mode = st.sidebar.selectbox("Select a Mode", index=0, options=["Top Sampling", "Beam Search"])
43
 
44
  original_keywords = st.multiselect(
45
  "Choose ingredients",