shingguy1 commited on
Commit
6ac1e6d
·
verified ·
1 Parent(s): cc84ffa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -94,7 +94,7 @@ st.set_page_config(
94
  layout="centered"
95
  )
96
 
97
- # Custom CSS for kid-friendly styling with black text
98
  st.markdown("""
99
  <style>
100
  .main {
@@ -118,14 +118,14 @@ st.markdown("""
118
  transform: scale(1.05);
119
  }
120
  .stFileUploader {
121
- background-color: #fff3cd;
122
- border: 2px dashed #ffca28;
123
  border-radius: 10px;
124
  padding: 10px;
125
  }
126
  /* Style for the file uploader's inner text */
127
  .stFileUploader div[role="button"] {
128
- background-color: #cccccc; /* Light gray background for contrast with black text */
129
  border-radius: 10px;
130
  padding: 10px;
131
  }
@@ -138,12 +138,13 @@ st.markdown("""
138
  background-color: #ffca28 !important; /* Yellow button background */
139
  color: #000000 !important; /* Black text */
140
  border-radius: 8px !important;
141
- border: 1px solid #ffb300 !important;
142
  padding: 5px 15px !important;
143
  font-weight: bold !important;
 
144
  }
145
  .stFileUploader button:hover {
146
- background-color: #ffb300 !important; /* Slightly darker yellow on hover */
147
  color: #000000 !important; /* Keep black text */
148
  }
149
  .stImage {
@@ -214,5 +215,4 @@ with st.container():
214
  audio_bytes = part3_text_to_speech_bytes(story, tts_pipe)
215
  st.audio(audio_bytes, format="audio/wav")
216
  st.success("Yay! Your story is ready! 🎈")
217
- st.balloons() # Fun animation
218
-
 
94
  layout="centered"
95
  )
96
 
97
+ # Custom CSS for kid-friendly styling with improved readability
98
  st.markdown("""
99
  <style>
100
  .main {
 
118
  transform: scale(1.05);
119
  }
120
  .stFileUploader {
121
+ background-color: #ffb300; /* Darker yellow for better contrast with white label text */
122
+ border: 2px dashed #ff8c00; /* Darker orange border to match */
123
  border-radius: 10px;
124
  padding: 10px;
125
  }
126
  /* Style for the file uploader's inner text */
127
  .stFileUploader div[role="button"] {
128
+ background-color: #f0f0f0; /* Very light gray background for contrast with black text */
129
  border-radius: 10px;
130
  padding: 10px;
131
  }
 
138
  background-color: #ffca28 !important; /* Yellow button background */
139
  color: #000000 !important; /* Black text */
140
  border-radius: 8px !important;
141
+ border: 2px solid #ffb300 !important; /* Match the container background */
142
  padding: 5px 15px !important;
143
  font-weight: bold !important;
144
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; /* Subtle shadow to make button stand out */
145
  }
146
  .stFileUploader button:hover {
147
+ background-color: #ff8c00 !important; /* Slightly darker yellow on hover */
148
  color: #000000 !important; /* Keep black text */
149
  }
150
  .stImage {
 
215
  audio_bytes = part3_text_to_speech_bytes(story, tts_pipe)
216
  st.audio(audio_bytes, format="audio/wav")
217
  st.success("Yay! Your story is ready! 🎈")
218
+ st.balloons() # Fun animation