diff --git a/src/apps/pages/programs/ApiPrograms/worldClock.py b/src/apps/pages/programs/SimplePrograms/worldClock.py similarity index 100% rename from src/apps/pages/programs/ApiPrograms/worldClock.py rename to src/apps/pages/programs/SimplePrograms/worldClock.py diff --git a/src/apps/pages/programs/apiProgram.py b/src/apps/pages/programs/apiProgram.py index 27797058..cbb6b105 100644 --- a/src/apps/pages/programs/apiProgram.py +++ b/src/apps/pages/programs/apiProgram.py @@ -2,7 +2,7 @@ def apiPrograms(): st.title('API Programs') - choice = st.selectbox('Select a program to execute', [None, "Jokes", "General Facts", "Gemini ChatBot", "World Clock"]) + choice = st.selectbox('Select a program to execute', [None, "Jokes", "General Facts", "Gemini ChatBot"]) st.markdown('---') if choice == "Jokes": from src.apps.pages.programs.ApiPrograms.joke import play_joke @@ -13,9 +13,6 @@ def apiPrograms(): elif choice == "Gemini ChatBot": from src.apps.pages.programs.ApiPrograms.genAIChatbot import chatBot chatBot() - elif choice == "World Clock": - from src.apps.pages.programs.ApiPrograms.worldClock import display_world_clock - display_world_clock() else: st.info("Star this project on [GitHub](https://github.com/Avdhesh-Varshney/Jarvis), if you like it!", icon='⭐') diff --git a/src/apps/pages/programs/simpleProgram.py b/src/apps/pages/programs/simpleProgram.py index 24019e02..5d5125c4 100644 --- a/src/apps/pages/programs/simpleProgram.py +++ b/src/apps/pages/programs/simpleProgram.py @@ -2,7 +2,7 @@ def simplePrograms(): st.title('Simple Programs') - choice = st.selectbox('Select a program to execute', [None, 'Timer', 'Password Generator','Caeser Cipher']) + choice = st.selectbox('Select a program to execute', [None, 'Timer', 'Password Generator','Caeser Cipher', 'World Clock']) st.markdown('---') @@ -15,6 +15,9 @@ def simplePrograms(): elif choice == 'Caeser Cipher': from src.apps.pages.programs.SimplePrograms.CaeserCipher import caeserCipher caeserCipher() + elif choice == 'World Clock': + from src.apps.pages.programs.SimplePrograms.worldClock import display_world_clock + display_world_clock() else: st.info("Star this project on [GitHub](https://github.com/Avdhesh-Varshney/Jarvis), if you like it!", icon='⭐')