Update app.py
Browse files
app.py
CHANGED
@@ -140,6 +140,7 @@ if st.button("Test my solution", key=2):
|
|
140 |
test_cases = [test_func]
|
141 |
candidates = [[candidate_solution]]
|
142 |
pass_at_k, _ = code_eval.compute(references=test_cases, predictions=candidates)
|
|
|
143 |
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! π"
|
144 |
st.markdown(text)
|
145 |
if st.button("Show model solution", key=3):
|
|
|
140 |
test_cases = [test_func]
|
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):
|