Spaces:
Sleeping
Sleeping
epochs-demos
commited on
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def main():
|
|
75 |
def execute_instructor_code(params):
|
76 |
# Execute the instructor's code to get the result
|
77 |
globals_dict = {}
|
78 |
-
|
79 |
return a+b, globals_dict)
|
80 |
instructor_function = globals_dict.get(st.session_state.function_name)
|
81 |
|
|
|
75 |
def execute_instructor_code(params):
|
76 |
# Execute the instructor's code to get the result
|
77 |
globals_dict = {}
|
78 |
+
exec(def sum(a,b):
|
79 |
return a+b, globals_dict)
|
80 |
instructor_function = globals_dict.get(st.session_state.function_name)
|
81 |
|