MohammedJafar-2001 commited on
Commit
bde0c07
·
verified ·
1 Parent(s): 7880504

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -0
app.py CHANGED
@@ -67,6 +67,29 @@ import streamlit as st
67
  # Set page configuration
68
  st.set_page_config(page_title="User Behavior Prediction", page_icon="📱", layout="wide")
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  # Title and Description
71
  st.title("📱 User Behavior Prediction Using Mobile Data")
72
  st.markdown("""
@@ -155,6 +178,7 @@ except Exception as e:
155
 
156
 
157
 
 
158
 
159
 
160
  # age = st.number_input("Enter age",min_value=0,max_value=1000,step=1,format="%d" )
 
67
  # Set page configuration
68
  st.set_page_config(page_title="User Behavior Prediction", page_icon="📱", layout="wide")
69
 
70
+ # Add background image using custom CSS
71
+ def add_bg_from_url():
72
+ st.markdown(
73
+ f"""
74
+ <style>
75
+ .stApp {{
76
+ background-image: url("https://images.unsplash.com/photo-1520968959305-3c85d514f690?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080");
77
+ background-size: cover;
78
+ background-position: center;
79
+ background-repeat: no-repeat;
80
+ background-attachment: fixed;
81
+ color: white;
82
+ }}
83
+ .stMarkdown h1, .stMarkdown h2, .stMarkdown h3 {{
84
+ color: #F7F9FB !important;
85
+ }}
86
+ </style>
87
+ """,
88
+ unsafe_allow_html=True
89
+ )
90
+
91
+ add_bg_from_url()
92
+
93
  # Title and Description
94
  st.title("📱 User Behavior Prediction Using Mobile Data")
95
  st.markdown("""
 
178
 
179
 
180
 
181
+
182
 
183
 
184
  # age = st.number_input("Enter age",min_value=0,max_value=1000,step=1,format="%d" )