LinkLinkWu commited on
Commit
1de08b2
·
verified ·
1 Parent(s): c212840

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
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
- f"<div style='background:#fff7e6; padding:1rem; "
40
- f"border-radius:10px; font-size:20px;'>{story}</div>",
41
- unsafe_allow_html=True
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