Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import urllib.parse
|
|
3 |
import streamlit as st
|
4 |
import requests
|
5 |
|
6 |
-
# Load configuration from environment variables
|
7 |
FRONTEND_PASSWORD = os.environ.get("FE_PASS")
|
8 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
9 |
API_URL = os.environ.get("END_POINT_URL")
|
@@ -13,52 +12,35 @@ if not all([FRONTEND_PASSWORD, HF_TOKEN, API_URL]):
|
|
13 |
|
14 |
|
15 |
def main():
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
18 |
|
19 |
-
#
|
20 |
st.markdown("""
|
21 |
<style>
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
.stMarkdown h1, .stMarkdown h2, .stMarkdown h3 { color: #333; }
|
28 |
-
|
29 |
-
/* Input fields styling */
|
30 |
-
div.stTextInput>div>div>input, div.stTextArea>div>div>textarea {
|
31 |
-
border-radius: 8px !important;
|
32 |
-
border: 1px solid #ccc !important;
|
33 |
-
padding: 0.6rem !important;
|
34 |
-
font-size: 1rem !important;
|
35 |
}
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
background-color: #4caf50 !important;
|
40 |
-
color: white !important;
|
41 |
-
padding: 0.75rem 1.5rem !important;
|
42 |
-
border-radius: 8px !important;
|
43 |
-
font-size: 1rem !important;
|
44 |
-
transition: background-color 0.3s ease;
|
45 |
}
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
48 |
}
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
/* WhatsApp share link styling */
|
54 |
-
a.whatsapp-share {
|
55 |
-
display: inline-block;
|
56 |
-
margin-top: 0.5rem;
|
57 |
-
color: #25D366;
|
58 |
-
font-weight: bold;
|
59 |
-
text-decoration: none;
|
60 |
}
|
61 |
-
a.whatsapp-share:hover { text-decoration: underline; }
|
62 |
</style>
|
63 |
""", unsafe_allow_html=True)
|
64 |
|
|
|
3 |
import streamlit as st
|
4 |
import requests
|
5 |
|
|
|
6 |
FRONTEND_PASSWORD = os.environ.get("FE_PASS")
|
7 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
8 |
API_URL = os.environ.get("END_POINT_URL")
|
|
|
12 |
|
13 |
|
14 |
def main():
|
15 |
+
st.set_page_config(
|
16 |
+
page_title="Automated Reporter",
|
17 |
+
page_icon="🤖",
|
18 |
+
layout="centered",
|
19 |
+
)
|
20 |
|
21 |
+
# Force light mode via CSS overrides
|
22 |
st.markdown("""
|
23 |
<style>
|
24 |
+
:root {
|
25 |
+
--primary-background-color: #FFFFFF;
|
26 |
+
--secondary-background-color: #FFFFFF;
|
27 |
+
--background-color: #FFFFFF;
|
28 |
+
--text-color: #000000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
+
html, body, .stApp, .block-container {
|
31 |
+
background-color: #FFFFFF !important;
|
32 |
+
color: #000000 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
+
/* Input and button adjustments to match light mode */
|
35 |
+
div.stTextInput>div>div>input,
|
36 |
+
div.stTextArea>div>div>textarea,
|
37 |
+
div.stButton>button {
|
38 |
+
color: #000000 !important;
|
39 |
}
|
40 |
+
/* Links color for light mode */
|
41 |
+
a {
|
42 |
+
color: #1a0dab !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
|
|
44 |
</style>
|
45 |
""", unsafe_allow_html=True)
|
46 |
|