Spaces:
Runtime error
Runtime error
Update server.py
Browse files
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
|
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
|
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("
|
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",
|