Spaces:
Sleeping
Sleeping
File size: 1,291 Bytes
575ac34 ecd8554 08d96f8 93d851d 08d96f8 70a5d4a 08d96f8 70a5d4a ecd8554 70a5d4a ecd8554 70a5d4a 08d96f8 |
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 29 30 31 32 33 34 35 36 37 38 39 40 |
import streamlit as st
import numpy as np
import pandas as pd
st.write("<h1 style='text-align:center; color:#d2691e;'>Conclusion</h1>",unsafe_allow_html=True)
# Define the URL of the background image (use your own image URL)
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/vulm4WwHmmA14tsVXYaTM.jpeg"
# Apply custom CSS for the background image and overlay
st.markdown(
f"""
<style>
.stApp {{
background-image: url("{background_image_url}");
background-size: cover;
background-position: center;
height: 100vh;
}}
/* Semi-transparent overlay */
.stApp::before {{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
z-index: -1;
}}
/* Styling the content to ensure text visibility */
.stMarkdown {{
color: black; /* White text to ensure visibility */
font-size: 30px; /* Adjust font size for better readability */
}}
</style>
""",
unsafe_allow_html=True
) |