Spaces:
Running
Running
File size: 782 Bytes
10e4cb6 0a88fc0 10e4cb6 0a88fc0 10e4cb6 0a88fc0 10e4cb6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import streamlit as st
# Function to set a background image from a URL
def set_background_from_url(image_url):
st.markdown(
f"""
<style>
.stApp {{
background-image: url("{image_url}");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}}
</style>
""",
unsafe_allow_html=True
)
# Streamlit App
st.title("Word Cloud Application")
st.write("This application displays a word cloud with a custom background.")
# Set background image from URL
set_background_from_url("https://huggingface.co/spaces/tahirsher/wellbeing_GenAI/blob/main/1.png")
st.header("Word Clouds Display")
st.write("Use the images in your layout or add functionality.")
|