loubnabnl HF staff commited on
Commit
3283b93
1 Parent(s): a16fa71

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ elif selected_task == "Code generation":
74
  example_text = examples[name2id[selected_example]]["value"]
75
  default_length = examples[name2id[selected_example]]["length"]
76
  st.sidebar.header("Generation settings")
77
- temperature = st.sidebar.slider("Temperature:", value=0.2, min_value=0, step=0.1, max_value=2)
78
  max_new_tokens = st.sidebar.slider("Number of tokens to generate:", value=default_length, min_value=8, step=8, max_value=256)
79
  seed = st.sidebar.slider("Random seed:", value=42, min_value=0, step=1, max_value=1000)
80
  gen_prompt = st.text_area("Generate code with prompt:", value=example_text, height=220,).strip()
 
74
  example_text = examples[name2id[selected_example]]["value"]
75
  default_length = examples[name2id[selected_example]]["length"]
76
  st.sidebar.header("Generation settings")
77
+ temperature = st.sidebar.slider("Temperature:", value=0.2, min_value=0.0, step=0.1, max_value=2.0)
78
  max_new_tokens = st.sidebar.slider("Number of tokens to generate:", value=default_length, min_value=8, step=8, max_value=256)
79
  seed = st.sidebar.slider("Random seed:", value=42, min_value=0, step=1, max_value=1000)
80
  gen_prompt = st.text_area("Generate code with prompt:", value=example_text, height=220,).strip()