Spaces:
Sleeping
Sleeping
epochs-demos
commited on
Commit
•
542edbc
1
Parent(s):
2a8ac2d
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -91,10 +91,12 @@ def main():
|
|
91 |
if st.form_submit_button("Check Solution"):
|
92 |
if code:
|
93 |
# Check the solution
|
94 |
-
check_solution(
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
|
|
98 |
else:
|
99 |
st.error("Please provide a solution.")
|
100 |
|
|
|
91 |
if st.form_submit_button("Check Solution"):
|
92 |
if code:
|
93 |
# Check the solution
|
94 |
+
check_solution(def sum(a,b):
|
95 |
+
return a+b,
|
96 |
+
code,
|
97 |
+
sum,
|
98 |
+
[(1, 2), (2, 3), (3, 4)]
|
99 |
+
)
|
100 |
else:
|
101 |
st.error("Please provide a solution.")
|
102 |
|