Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,20 @@ if uploaded:
|
|
36 |
story = text2story(caption) # ② caption → story
|
37 |
st.success("Story ready! Read along below:")
|
38 |
st.markdown(
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
with st.spinner("🎤 Recording the story..."):
|
45 |
wav_path = story2audio(story) # ③ story → audio
|
|
|
36 |
story = text2story(caption) # ② caption → story
|
37 |
st.success("Story ready! Read along below:")
|
38 |
st.markdown(
|
39 |
+
f"""
|
40 |
+
<div style="
|
41 |
+
background:#fff7e6; /* light pastel background */
|
42 |
+
padding:1rem; /* comfy spacing */
|
43 |
+
border-radius:10px; /* soft rounded corners */
|
44 |
+
font-size:20px; /* kid-friendly large text */
|
45 |
+
line-height:1.6; /* more breathing room */
|
46 |
+
color:#333333; /* fixed dark font → visible on any theme */
|
47 |
+
">
|
48 |
+
{story}
|
49 |
+
</div>
|
50 |
+
""",
|
51 |
+
unsafe_allow_html=True
|
52 |
+
)
|
53 |
|
54 |
with st.spinner("🎤 Recording the story..."):
|
55 |
wav_path = story2audio(story) # ③ story → audio
|