Spaces:
Runtime error
Runtime error
| import streamlit as st | |
| # Replace with the direct image URL | |
| flower_image_url = "https://i.postimg.cc/JzJ4tFN1/1.png" | |
| # Inject custom CSS for the background with the provided flower image | |
| st.markdown( | |
| f""" | |
| <style> | |
| /* General background with flower image */ | |
| html, body, [data-testid="stAppViewContainer"] {{ | |
| background-image: url("{flower_image_url}"); | |
| background-size: cover; | |
| background-position: center; | |
| background-repeat: no-repeat; | |
| font-family: 'Arial', sans-serif; | |
| }} | |
| </style> | |
| """, | |
| unsafe_allow_html=True | |
| ) | |
| # Streamlit UI elements | |
| st.title("Word Cloud Application") | |
| st.markdown("Welcome to the Word Cloud Application with a beautiful flower background!") | |
| # Add some interactivity | |
| if st.button("Click Me"): | |
| st.write("You clicked the button!") | |
| # Add a select box | |
| option = st.selectbox( | |
| "Choose an option:", | |
| ["Option 1", "Option 2", "Option 3"] | |
| ) | |
| st.write(f"You selected: {option}") | |