epochs-demos commited on
Commit
c95bfec
1 Parent(s): afecfde

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -91,11 +91,11 @@ def main():
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.")
 
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.")