epochs-demos commited on
Commit
d25dbf5
·
verified ·
1 Parent(s): 388ccef

Upload app.py with huggingface_hub

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