loubnabnl HF staff commited on
Commit
33147c8
1 Parent(s): 9b637aa

update app

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -79,18 +79,18 @@ st.markdown(intro)
79
 
80
  # Code generation
81
  st.subheader("4 - Code generation ✨")
82
- col1, col2, col3 = st.columns([5,1,5])
83
  with col1:
84
  st.markdown("**Models**")
85
  selected_models = st.multiselect(
86
- "Select code generation models to compare", MODELS, default=["CodeParrot"], key=3
87
  )
88
  st.markdown("**Examples**")
89
  examples = load_examples()
90
  example_names = [example["name"] for example in examples]
91
  name2id = dict([(name, i) for i, name in enumerate(example_names)])
92
  selected_example = st.selectbox(
93
- "Select one of the following examples or implement yours", example_names
94
  )
95
  example_text = examples[name2id[selected_example]]["value"]
96
  default_length = examples[name2id[selected_example]]["length"]
@@ -112,7 +112,7 @@ with col3:
112
  gen_prompt = st.text_area(
113
  "Generate code with prompt:",
114
  value=example_text,
115
- height=150,
116
  ).strip()
117
  if st.button("Generate code!"):
118
  with st.spinner("Generating code..."):
 
79
 
80
  # Code generation
81
  st.subheader("4 - Code generation ✨")
82
+ col1, col2, col3 = st.columns([7,1,6])
83
  with col1:
84
  st.markdown("**Models**")
85
  selected_models = st.multiselect(
86
+ "Select code generation models to compare:", MODELS, default=["CodeParrot"], key=3
87
  )
88
  st.markdown("**Examples**")
89
  examples = load_examples()
90
  example_names = [example["name"] for example in examples]
91
  name2id = dict([(name, i) for i, name in enumerate(example_names)])
92
  selected_example = st.selectbox(
93
+ "Select one of the following examples or implement yours:", example_names
94
  )
95
  example_text = examples[name2id[selected_example]]["value"]
96
  default_length = examples[name2id[selected_example]]["length"]
 
112
  gen_prompt = st.text_area(
113
  "Generate code with prompt:",
114
  value=example_text,
115
+ height=200,
116
  ).strip()
117
  if st.button("Generate code!"):
118
  with st.spinner("Generating code..."):