Johan713 commited on
Commit
2c7180a
·
verified ·
1 Parent(s): 8c9ad61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -43
app.py CHANGED
@@ -2,10 +2,6 @@ import streamlit as st
2
  import os
3
  import importlib
4
 
5
- # Custom CSS for improved styling
6
- def local_css(file_name):
7
- with open(file_name, "r") as f:
8
- st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
9
 
10
  st.set_page_config(
11
  page_title="S.H.E.R.L.O.C.K.",
@@ -94,12 +90,6 @@ def main():
94
  </style>
95
  """, unsafe_allow_html=True)
96
 
97
- selection = st.sidebar.radio(
98
- "Navigate",
99
- list(PAGES.keys()),
100
- format_func=lambda x: f"{PAGES[x]['icon']} {x}"
101
- )
102
-
103
  st.sidebar.markdown("---")
104
  st.sidebar.info(
105
  "This app is part of the S.H.E.R.L.O.C.K. project. "
@@ -108,39 +98,27 @@ def main():
108
  st.sidebar.text("Version 1.0")
109
 
110
  # Main content area
111
- if selection == "Home":
112
- st.title("Welcome to S.H.E.R.L.O.C.K. 🕵️")
113
- st.markdown("""
114
- *Systematic Holistic Educational Resource for Learning and Optimizing Cognitive Knowledge*
115
-
116
- S.H.E.R.L.O.C.K. is an advanced AI-powered personalized learning assistant designed to revolutionize your educational journey. By combining cutting-edge artificial intelligence with time-tested learning techniques, S.H.E.R.L.O.C.K. aims to enhance your cognitive abilities, strengthen your memory, and deepen your subject-specific knowledge.
117
-
118
- Our platform offers a comprehensive suite of tools and features that cater to various aspects of learning and personal development. From AI-driven chatbots and customized study plans to innovative memory techniques and mindfulness practices, S.H.E.R.L.O.C.K. is your all-in-one companion for academic success and personal growth.
119
-
120
- Explore our features below and embark on a journey to unlock your full learning potential!
121
- """)
122
- st.markdown("## Features")
123
- cols = st.columns(3)
124
- for idx, (feature, details) in enumerate(list(PAGES.items())[1:]): # Skip "Home"
125
- with cols[idx % 3]:
126
- st.markdown(f"""
127
- <div class="feature-card">
128
- <div class="feature-icon">{details['icon']}</div>
129
- <h3>{feature}</h3>
130
- <p>{get_feature_description(feature)}</p>
131
- </div>
132
- """, unsafe_allow_html=True)
133
- else:
134
- st.title(f"{PAGES[selection]['icon']} {selection}")
135
- st.markdown(f"*{get_feature_description(selection)}*")
136
- st.markdown("---")
137
-
138
- # Load and run the selected module
139
- module = load_module(PAGES[selection]['module'])
140
- if module and hasattr(module, 'main'):
141
- module.main()
142
- else:
143
- st.error(f"Unable to load the {selection} feature. Please check the module implementation.")
144
 
145
  def get_feature_description(feature):
146
  descriptions = {
 
2
  import os
3
  import importlib
4
 
 
 
 
 
5
 
6
  st.set_page_config(
7
  page_title="S.H.E.R.L.O.C.K.",
 
90
  </style>
91
  """, unsafe_allow_html=True)
92
 
 
 
 
 
 
 
93
  st.sidebar.markdown("---")
94
  st.sidebar.info(
95
  "This app is part of the S.H.E.R.L.O.C.K. project. "
 
98
  st.sidebar.text("Version 1.0")
99
 
100
  # Main content area
101
+ st.title("Welcome to S.H.E.R.L.O.C.K. 🕵️")
102
+ st.markdown("""
103
+ *Systematic Holistic Educational Resource for Learning and Optimizing Cognitive Knowledge*
104
+
105
+ S.H.E.R.L.O.C.K. is an advanced AI-powered personalized learning assistant designed to revolutionize your educational journey. By combining cutting-edge artificial intelligence with time-tested learning techniques, S.H.E.R.L.O.C.K. aims to enhance your cognitive abilities, strengthen your memory, and deepen your subject-specific knowledge.
106
+
107
+ Our platform offers a comprehensive suite of tools and features that cater to various aspects of learning and personal development. From AI-driven chatbots and customized study plans to innovative memory techniques and mindfulness practices, S.H.E.R.L.O.C.K. is your all-in-one companion for academic success and personal growth.
108
+
109
+ Explore our features below and embark on a journey to unlock your full learning potential!
110
+ """)
111
+ st.markdown("## Features")
112
+ cols = st.columns(3)
113
+ for idx, (feature, details) in enumerate(list(PAGES.items())[1:]): # Skip "Home"
114
+ with cols[idx % 3]:
115
+ st.markdown(f"""
116
+ <div class="feature-card">
117
+ <div class="feature-icon">{details['icon']}</div>
118
+ <h3>{feature}</h3>
119
+ <p>{get_feature_description(feature)}</p>
120
+ </div>
121
+ """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  def get_feature_description(feature):
124
  descriptions = {