316usman commited on
Commit
f591817
·
1 Parent(s): f236b24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ else:
69
  tokenizer1 = st.session_state["tokenizer"]
70
 
71
 
72
- if model_loaded:
73
  # Set up initial values for pipeline parameters
74
  temperature = st.slider("Temperature 'randomness' of outputs, 0.0 is the min and 1.0 the max", min_value=0.0, max_value=1.0, value=0.1, step=0.1)
75
  top_p = st.slider("Top P select from top tokens whose probability add up to 15%", min_value=0.0, max_value=1.0, value=0.1, step=0.1)
 
69
  tokenizer1 = st.session_state["tokenizer"]
70
 
71
 
72
+ if st.session_state["model_loaded"]:
73
  # Set up initial values for pipeline parameters
74
  temperature = st.slider("Temperature 'randomness' of outputs, 0.0 is the min and 1.0 the max", min_value=0.0, max_value=1.0, value=0.1, step=0.1)
75
  top_p = st.slider("Top P select from top tokens whose probability add up to 15%", min_value=0.0, max_value=1.0, value=0.1, step=0.1)