loubnabnl HF staff commited on
Commit
05ca39c
β€’
1 Parent(s): 788cd8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,8 +141,8 @@ if st.button("Test my solution", key=2):
141
  candidates = [[candidate_solution]]
142
  pass_at_k, _ = code_eval.compute(references=test_cases, predictions=candidates)
143
  st.markdown(pass_at_k)
144
- #text = "Your solution didn't pass the test, pass@1 is 0 πŸ˜•" if int(pass_at_k['pass@1']) < 1 else "Congrats your pass@1 is 1! πŸŽ‰"
145
- #st.markdown(text)
146
  if st.button("Show model solution", key=3):
147
  st.markdown(solution)
148
 
 
141
  candidates = [[candidate_solution]]
142
  pass_at_k, _ = code_eval.compute(references=test_cases, predictions=candidates)
143
  st.markdown(pass_at_k)
144
+ text = "Your solution didn't pass the test, pass@1 is 0 πŸ˜•" if pass_at_k['pass@1'] < 1 else "Congrats your pass@1 is 1! πŸŽ‰"
145
+ st.markdown(text)
146
  if st.button("Show model solution", key=3):
147
  st.markdown(solution)
148