Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|