EliSafina commited on
Commit
3dec0db
·
verified ·
1 Parent(s): 81a78a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -16
app.py CHANGED
@@ -7,22 +7,16 @@ import time
7
  def main():
8
  st.title("Text to Speech Converter 💭")
9
 
10
- st.write(
11
- """
12
- <style>
13
- .container {{
14
- background-image: url("https://www.pixelstalk.net/wp-content/uploads/images6/Marble-Cute-Backgrounds-Blue-Abstract.jpg");
15
- background-size: cover;
16
- height: 100vh;
17
- display: flex;
18
- flex-direction: column;
19
- justify-content: center;
20
- align-items: center;
21
- }}
22
- </style>
23
- <div class="container">
24
- """
25
- )
26
 
27
  # Text input
28
  text_input = st.text_area("Enter text to convert to speech📝", height=150)
 
7
  def main():
8
  st.title("Text to Speech Converter 💭")
9
 
10
+ page_bg_img = '''
11
+ <style>
12
+ body {
13
+ background-image: url("https://www.pixelstalk.net/wp-content/uploads/images6/Marble-Cute-Backgrounds-Blue-Abstract.jpg");
14
+ background-size: cover;
15
+ }
16
+ </style>
17
+ '''
18
+
19
+ st.markdown(page_bg_img, unsafe_allow_html=True)
 
 
 
 
 
 
20
 
21
  # Text input
22
  text_input = st.text_area("Enter text to convert to speech📝", height=150)