epochs-demos commited on
Commit
dd9c5ec
1 Parent(s): 606b011

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,8 +85,8 @@ def main():
85
  return instructor_function(*params)
86
 
87
  # Generate sample examples dynamically by executing the instructor's code
88
- func = '''sum'''
89
- test_cases = '''[(1, 2), (2, 3), (3, 4)]'''
90
  sample_examples = "\n".join([f"{func}({', '.join(map(str, params))}) -> {execute_instructor_code(params)}" for params in {test_cases}])
91
  show_solution_button = st.form_submit_button("Show Solution")
92
  if show_solution_button:
 
85
  return instructor_function(*params)
86
 
87
  # Generate sample examples dynamically by executing the instructor's code
88
+ func = sum
89
+ test_cases = [(1, 2), (2, 3), (3, 4)]
90
  sample_examples = "\n".join([f"{func}({', '.join(map(str, params))}) -> {execute_instructor_code(params)}" for params in {test_cases}])
91
  show_solution_button = st.form_submit_button("Show Solution")
92
  if show_solution_button: