Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ st_model_load.text("")
|
|
27 |
with st.sidebar:
|
28 |
st.header("Model parameters")
|
29 |
if 'num_queries' not in st.session_state:
|
30 |
-
st.session_state.
|
31 |
def on_change_num_titles():
|
32 |
st.session_state.num_titles = num_titles
|
33 |
num_titles = st.slider("Number of queries to generate", min_value=1, max_value=10, value=1, step=1, on_change=on_change_num_titles)
|
|
|
27 |
with st.sidebar:
|
28 |
st.header("Model parameters")
|
29 |
if 'num_queries' not in st.session_state:
|
30 |
+
st.session_state.num_titles = 5
|
31 |
def on_change_num_titles():
|
32 |
st.session_state.num_titles = num_titles
|
33 |
num_titles = st.slider("Number of queries to generate", min_value=1, max_value=10, value=1, step=1, on_change=on_change_num_titles)
|