Балаганский Никита Николаевич commited on
Commit
cce302e
1 Parent(s): e41f1db
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -84,7 +84,7 @@ def main():
84
  target_label_id = 0
85
  prompt = st.text_input(TEXT_PROMPT_LABEL[language], PROMPT_EXAMPLE[language])
86
  alpha = st.slider("Alpha", min_value=-10, max_value=10, step=1, value=0)
87
- entropy_threshold = st.slider("Entropy threshold", min_value=0., max_value=5., step=.1, value=0.)
88
  auth_token = os.environ.get('TOKEN') or True
89
  with st.spinner('Running inference...'):
90
  text = inference(
@@ -92,7 +92,8 @@ def main():
92
  cls_model_name=cls_model_name,
93
  prompt=prompt,
94
  alpha=alpha,
95
- entropy_threshold=entropy_threshold
 
96
  )
97
  st.subheader("Generated text:")
98
  st.markdown(text)
 
84
  target_label_id = 0
85
  prompt = st.text_input(TEXT_PROMPT_LABEL[language], PROMPT_EXAMPLE[language])
86
  alpha = st.slider("Alpha", min_value=-10, max_value=10, step=1, value=0)
87
+ entropy_threshold = st.slider("Entropy threshold", min_value=0., max_value=5., step=.1, value=5.)
88
  auth_token = os.environ.get('TOKEN') or True
89
  with st.spinner('Running inference...'):
90
  text = inference(
 
92
  cls_model_name=cls_model_name,
93
  prompt=prompt,
94
  alpha=alpha,
95
+ target_label_id=target_label_id,
96
+ entropy_threshold=entropy_threshold,
97
  )
98
  st.subheader("Generated text:")
99
  st.markdown(text)