Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,20 +6,6 @@ import time
|
|
| 6 |
# Define the Streamlit app
|
| 7 |
def main():
|
| 8 |
st.title("Text to Speech Converter 💭")
|
| 9 |
-
|
| 10 |
-
st.markdown(
|
| 11 |
-
"""
|
| 12 |
-
<style>
|
| 13 |
-
.reportview-container {
|
| 14 |
-
background: url("https://www.pixelstalk.net/wp-content/uploads/images6/Marble-Cute-Backgrounds-Blue-Abstract.jpg")
|
| 15 |
-
}
|
| 16 |
-
.sidebar .sidebar-content {
|
| 17 |
-
background: url("https://www.pixelstalk.net/wp-content/uploads/images6/Marble-Cute-Backgrounds-Blue-Abstract.jpg")
|
| 18 |
-
}
|
| 19 |
-
</style>
|
| 20 |
-
""",
|
| 21 |
-
unsafe_allow_html=True
|
| 22 |
-
)
|
| 23 |
|
| 24 |
# Text input
|
| 25 |
text_input = st.text_area("Enter text to convert to speech📝", height=150)
|
|
@@ -66,6 +52,4 @@ def main():
|
|
| 66 |
# Display error message if no text input is provided
|
| 67 |
st.warning("Please enter text or upload a text file.")
|
| 68 |
|
| 69 |
-
|
| 70 |
-
if __name__ == "__main__":
|
| 71 |
-
main()
|
|
|
|
| 6 |
# Define the Streamlit app
|
| 7 |
def main():
|
| 8 |
st.title("Text to Speech Converter 💭")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Text input
|
| 11 |
text_input = st.text_area("Enter text to convert to speech📝", height=150)
|
|
|
|
| 52 |
# Display error message if no text input is provided
|
| 53 |
st.warning("Please enter text or upload a text file.")
|
| 54 |
|
| 55 |
+
main()
|
|
|
|
|
|