tarrasyed19472007 commited on
Commit
b394907
·
verified ·
1 Parent(s): 7de714b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -20
app.py CHANGED
@@ -95,29 +95,11 @@ def get_well_being_suggestions(emotion):
95
 
96
  # Streamlit UI
97
  def main():
98
- # Allow user to upload an image for the background
99
- uploaded_file = st.file_uploader("Upload a background image", type=["png", "jpg", "jpeg"])
100
-
101
- # Check if an image is uploaded
102
- if uploaded_file is not None:
103
- st.image(uploaded_file, use_column_width=True)
104
- else:
105
- # If no image uploaded, use a default URL for a peaceful background
106
- st.markdown("""
107
- <style>
108
- .stApp {
109
- background-image: url('https://example.com/your-peaceful-image.jpg');
110
- background-size: cover;
111
- background-position: center;
112
- }
113
- </style>
114
- """, unsafe_allow_html=True)
115
-
116
- # Custom Styling for purple background and white text color
117
  st.markdown("""
118
  <style>
119
  .stApp {
120
- background-color: #6a0dad; /* Purple background */
121
  background-size: cover;
122
  background-position: center;
123
  color: white; /* Set text color to white */
 
95
 
96
  # Streamlit UI
97
  def main():
98
+ # Add the background image
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  st.markdown("""
100
  <style>
101
  .stApp {
102
+ background-image: url('https://drive.google.com/uc?export=view&id=1TydbjDRL5fXLMxQgaPkIg9oGOJlU2IWt');
103
  background-size: cover;
104
  background-position: center;
105
  color: white; /* Set text color to white */