Spaces:
Sleeping
Sleeping
epochs-demos
commited on
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -86,8 +86,8 @@ def main():
|
|
86 |
|
87 |
# Generate sample examples dynamically by executing the instructor's code
|
88 |
sample_examples = "
|
89 |
-
".join([f"
|
90 |
-
st.
|
91 |
show_solution_button = st.form_submit_button("Show Solution")
|
92 |
if show_solution_button:
|
93 |
solution = '''def sum(a,b):
|
|
|
86 |
|
87 |
# Generate sample examples dynamically by executing the instructor's code
|
88 |
sample_examples = "
|
89 |
+
".join([f"sum({', '.join(map(str, params))}) -> {execute_instructor_code(params)}" for params in st.session_state.test_cases])
|
90 |
+
st.write(sample_examples)
|
91 |
show_solution_button = st.form_submit_button("Show Solution")
|
92 |
if show_solution_button:
|
93 |
solution = '''def sum(a,b):
|