Spaces:
Sleeping
Sleeping
rafaldembski
commited on
Commit
•
8ebdfd9
1
Parent(s):
46967e6
Update app.py
Browse files
app.py
CHANGED
@@ -2,20 +2,35 @@
|
|
2 |
|
3 |
import streamlit as st
|
4 |
from streamlit_option_menu import option_menu
|
5 |
-
from utils.functions import get_phone_info, simple_checks, analyze_message, init_stats_file, update_stats
|
6 |
import os
|
7 |
|
8 |
# Inicjalizacja pliku statystyk
|
9 |
init_stats_file()
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# Konfiguracja strony
|
12 |
-
st.set_page_config(
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# Tworzenie poziomego menu
|
15 |
selected = option_menu(
|
16 |
menu_title=None, # Brak tytułu menu
|
17 |
options=["Analiza SMS", "O Projekcie", "Edukacja", "Statystyki", "Kontakt"],
|
18 |
-
icons=["
|
19 |
menu_icon="cast",
|
20 |
default_index=0,
|
21 |
orientation="horizontal",
|
@@ -42,4 +57,5 @@ elif selected == "Statystyki":
|
|
42 |
show_statistics()
|
43 |
elif selected == "Kontakt":
|
44 |
from pages.Contact import main as show_contact
|
45 |
-
show_contact()
|
|
|
|
2 |
|
3 |
import streamlit as st
|
4 |
from streamlit_option_menu import option_menu
|
5 |
+
from utils.functions import get_phone_info, simple_checks, analyze_message, init_stats_file, update_stats, add_to_history
|
6 |
import os
|
7 |
|
8 |
# Inicjalizacja pliku statystyk
|
9 |
init_stats_file()
|
10 |
|
11 |
+
# Ukryj boczne menu Streamlit
|
12 |
+
hide_sidebar_style = """
|
13 |
+
<style>
|
14 |
+
/* Hide the sidebar */
|
15 |
+
[data-testid="stSidebar"] {
|
16 |
+
display: none;
|
17 |
+
}
|
18 |
+
</style>
|
19 |
+
"""
|
20 |
+
st.markdown(hide_sidebar_style, unsafe_allow_html=True)
|
21 |
+
|
22 |
# Konfiguracja strony
|
23 |
+
st.set_page_config(
|
24 |
+
page_title="📱 Detektor Fałszywych Wiadomości SMS",
|
25 |
+
page_icon="📱",
|
26 |
+
layout="wide"
|
27 |
+
)
|
28 |
|
29 |
# Tworzenie poziomego menu
|
30 |
selected = option_menu(
|
31 |
menu_title=None, # Brak tytułu menu
|
32 |
options=["Analiza SMS", "O Projekcie", "Edukacja", "Statystyki", "Kontakt"],
|
33 |
+
icons=["shield-check", "info-circle", "book", "bar-chart", "envelope"],
|
34 |
menu_icon="cast",
|
35 |
default_index=0,
|
36 |
orientation="horizontal",
|
|
|
57 |
show_statistics()
|
58 |
elif selected == "Kontakt":
|
59 |
from pages.Contact import main as show_contact
|
60 |
+
show_contact()
|
61 |
+
|