Балаганский Никита Николаевич commited on
Commit
9eff073
1 Parent(s): ba6e259
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -142,7 +142,7 @@ def main():
142
  prompt = st.text_input(TEXT_PROMPT_LABEL[language], PROMPT_EXAMPLE[language])
143
  st.latex(r"p(x_i|x_{<i}, c) \propto p(x_i|x_{<i})p(c|x_{\leq i})^{\alpha}")
144
  if act_type == "softmax":
145
- alpha = st.slider("α", min_value=-100, max_value=100 if show_pos_alpha else 0, step=1, value=0)
146
  else:
147
  alpha = st.slider("α", min_value=-10, max_value=10 if show_pos_alpha else 0, step=1, value=0)
148
  entropy_threshold = st.slider("Entropy threshold", min_value=0., max_value=10., step=.1, value=2.)
 
142
  prompt = st.text_input(TEXT_PROMPT_LABEL[language], PROMPT_EXAMPLE[language])
143
  st.latex(r"p(x_i|x_{<i}, c) \propto p(x_i|x_{<i})p(c|x_{\leq i})^{\alpha}")
144
  if act_type == "softmax":
145
+ alpha = st.slider("α", min_value=-40, max_value=40 if show_pos_alpha else 0, step=1, value=0)
146
  else:
147
  alpha = st.slider("α", min_value=-10, max_value=10 if show_pos_alpha else 0, step=1, value=0)
148
  entropy_threshold = st.slider("Entropy threshold", min_value=0., max_value=10., step=.1, value=2.)