epochs-demos commited on
Commit
542edbc
1 Parent(s): 2a8ac2d

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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(code, {
95
- "function_name": "sum",
96
- "test_cases": [(1, 2), (2, 3), (3, 4)]
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