-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_start.py
30 lines (23 loc) · 1.19 KB
/
main_start.py
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
30
import importlib
def main():
# Dynamically import the user registration module
user_registration_module = importlib.import_module('S_02_user_registration_streamlit')
# Step 1: User Registration
print("Starting User Registration...")
user_data = user_registration_module.user_registration()
# Ensure user data is returned before proceeding to the next steps
if user_data:
# Step 2: Generate Initial Prompt for User
print("Generating Initial Prompt for User...")
user_initial_prompt_generation = importlib.import_module('S_03_user_prompt_plan_generation')
user_initial_prompt_generation.generate_plan_by_llm()
# Step 3: Generate Calendar File
print("Generating Initial Calendar File...")
user_initial_calendar_file_generation = importlib.import_module('S_06_user_initial_calendar_file_generation')
user_initial_calendar_file_generation.create_calendar_for_user()
# Step 4: Push Data to Google Calendar
print("Pushing Data to Google Calendar...")
user_gcal_push = importlib.import_module('S_07_user_gcal_push')
user_gcal_push.push_calendar_entries()
if __name__ == "__main__":
main()