Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ with st.sidebar:
|
|
35 |
st.session_state.temperature = 0.7
|
36 |
def on_change_temperatures():
|
37 |
st.session_state.temperature = temperature
|
38 |
-
temperature = st.slider("Temperature", min_value=0.1, max_value=1.5, value=
|
39 |
st.markdown("_High temperature means that results are more random_")
|
40 |
|
41 |
if 'text' not in st.session_state:
|
|
|
35 |
st.session_state.temperature = 0.7
|
36 |
def on_change_temperatures():
|
37 |
st.session_state.temperature = temperature
|
38 |
+
temperature = st.slider("Temperature", min_value=0.1, max_value=1.5, value=1.5, step=0.05, on_change=on_change_temperatures)
|
39 |
st.markdown("_High temperature means that results are more random_")
|
40 |
|
41 |
if 'text' not in st.session_state:
|