Spaces:
Sleeping
Sleeping
File size: 924 Bytes
217abc3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | """Global state management for the UI."""
# Global variables to store processed content and generated objectives
processed_file_contents = []
generated_learning_objectives = []
def get_processed_contents():
"""Get the current processed file contents."""
return processed_file_contents
def set_processed_contents(contents):
"""Set the processed file contents."""
global processed_file_contents
processed_file_contents = contents
def get_learning_objectives():
"""Get the current learning objectives."""
return generated_learning_objectives
def set_learning_objectives(objectives):
"""Set the learning objectives."""
global generated_learning_objectives
generated_learning_objectives = objectives
def clear_state():
"""Clear all state."""
global processed_file_contents, generated_learning_objectives
processed_file_contents = []
generated_learning_objectives = [] |