Vnmrsharma commited on
Commit
1f39e22
·
verified ·
1 Parent(s): 48fbb42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -40
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
- # Page config
17
- st.set_page_config(page_title="Automated Reporter", page_icon="🤖")
 
 
 
18
 
19
- # Custom CSS for enhanced styling
20
  st.markdown("""
21
  <style>
22
- /* Page background and container */
23
- .stApp { background-color: #f7f9fc; }
24
- .block-container { padding: 2rem 1rem; max-width: 800px; margin: auto; }
25
-
26
- /* Title styling */
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
- /* Button styling */
38
- div.stButton>button {
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
- div.stButton>button:hover {
47
- background-color: #45a049 !important;
 
 
 
48
  }
49
-
50
- /* Error and success message styling */
51
- .stError, .stSuccess { font-weight: bold; }
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