Балаганский Никита Николаевич commited on
Commit
895c44e
1 Parent(s): aefd832
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ def main():
137
  show_pos_alpha = st.checkbox("Show positive alphas", value=False)
138
  prompt = st.text_input(TEXT_PROMPT_LABEL[language], PROMPT_EXAMPLE[language])
139
  st.latex(r"p(x_i|x_{<i}, c) \propto p(x_i|x_{<i})p(c|x_{\leq i})^{\alpha}")
140
- alpha = st.slider(r"$\alpha$", min_value=-10, max_value=10 if show_pos_alpha else 0, step=1, value=0)
141
  entropy_threshold = st.slider("Entropy threshold", min_value=0., max_value=10., step=.1, value=2.)
142
  plot_idx = np.argmin(np.abs(entropy_threshold - x_s))
143
  scatter_tip = go.Scatter({
 
137
  show_pos_alpha = st.checkbox("Show positive alphas", value=False)
138
  prompt = st.text_input(TEXT_PROMPT_LABEL[language], PROMPT_EXAMPLE[language])
139
  st.latex(r"p(x_i|x_{<i}, c) \propto p(x_i|x_{<i})p(c|x_{\leq i})^{\alpha}")
140
+ alpha = st.slider("α", min_value=-10, max_value=10 if show_pos_alpha else 0, step=1, value=0)
141
  entropy_threshold = st.slider("Entropy threshold", min_value=0., max_value=10., step=.1, value=2.)
142
  plot_idx = np.argmin(np.abs(entropy_threshold - x_s))
143
  scatter_tip = go.Scatter({