shingguy1 commited on
Commit
c6134f9
Β·
verified Β·
1 Parent(s): 3520514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -87,6 +87,13 @@ def part3_text_to_speech_bytes(text: str, tts_pipe) -> bytes:
87
  return buffer.read()
88
 
89
  # β€”β€”β€” 3) STREAMLIT UI β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
 
 
 
 
 
 
 
90
  # Custom CSS for kid-friendly styling
91
  st.markdown("""
92
  <style>
@@ -110,7 +117,7 @@ st.markdown("""
110
  color: white;
111
  transform: scale(1.05);
112
  }
113
- .stFileUploader {
114
  background-color: #fff3cd;
115
  border: 2px dashed #ffca28;
116
  border-radius: 10px;
@@ -141,12 +148,6 @@ st.markdown("""
141
  </style>
142
  """, unsafe_allow_html=True)
143
 
144
- st.set_page_config(
145
- page_title="Picture to Story Magic",
146
- page_icon="✨",
147
- layout="centered"
148
- )
149
-
150
  # Main title
151
  st.markdown("<div class='section-header'>Picture to Story Magic! ✨</div>", unsafe_allow_html=True)
152
 
 
87
  return buffer.read()
88
 
89
  # β€”β€”β€” 3) STREAMLIT UI β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
90
+ # Set page config as the first Streamlit command
91
+ st.set_page_config(
92
+ page_title="Picture to Story Magic",
93
+ page_icon="✨",
94
+ layout="centered"
95
+ )
96
+
97
  # Custom CSS for kid-friendly styling
98
  st.markdown("""
99
  <style>
 
117
  color: white;
118
  transform: scale(1.05);
119
  }
120
+ .stFileUploader {
121
  background-color: #fff3cd;
122
  border: 2px dashed #ffca28;
123
  border-radius: 10px;
 
148
  </style>
149
  """, unsafe_allow_html=True)
150
 
 
 
 
 
 
 
151
  # Main title
152
  st.markdown("<div class='section-header'>Picture to Story Magic! ✨</div>", unsafe_allow_html=True)
153