Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -159,18 +159,23 @@ with st.container():
|
|
159 |
st.markdown("---") # Dodaje poziom膮 lini臋
|
160 |
|
161 |
# 9. Importowanie i wywo艂ywanie modu艂贸w dla ka偶dej zak艂adki
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
159 |
st.markdown("---") # Dodaje poziom膮 lini臋
|
160 |
|
161 |
# 9. Importowanie i wywo艂ywanie modu艂贸w dla ka偶dej zak艂adki
|
162 |
+
try:
|
163 |
+
if selected == translations[selected_language]['menu_analysis_sms']:
|
164 |
+
from pages.Analysis import main as show_analysis
|
165 |
+
show_analysis(selected_language)
|
166 |
+
elif selected == translations[selected_language]['menu_about']:
|
167 |
+
from pages.About import main as show_about
|
168 |
+
show_about(selected_language)
|
169 |
+
elif selected == translations[selected_language]['menu_education']:
|
170 |
+
from pages.Education import main as show_education
|
171 |
+
show_education(selected_language)
|
172 |
+
elif selected == translations[selected_language]['menu_statistics']:
|
173 |
+
from pages.Statistics import main as show_statistics
|
174 |
+
show_statistics(selected_language)
|
175 |
+
elif selected == translations[selected_language]['menu_contact']:
|
176 |
+
from pages.Contact import main as show_contact
|
177 |
+
show_contact(selected_language)
|
178 |
+
except ImportError as e:
|
179 |
+
st.error(f"B艂膮d importu: {e}")
|
180 |
+
except TypeError as e:
|
181 |
+
st.error(f"B艂膮d wywo艂ania funkcji: {e}")
|