wellbeing_GenAI / app.py
tahirsher's picture
Update app.py
0a88fc0 verified
raw
history blame
782 Bytes
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.")