Update app.py
Browse files
app.py
CHANGED
|
@@ -8,19 +8,21 @@ html_temp = """
|
|
| 8 |
"""
|
| 9 |
st.markdown(html_temp, unsafe_allow_html=True)
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
<style>
|
| 14 |
.stApp {{
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
}}
|
| 22 |
</style>
|
| 23 |
-
|
|
|
|
| 24 |
st.write("Enter the customer details:")
|
| 25 |
|
| 26 |
# model
|
|
|
|
| 8 |
"""
|
| 9 |
st.markdown(html_temp, unsafe_allow_html=True)
|
| 10 |
|
| 11 |
+
bg_image_url = "https://images.unsplash.com/photo-1517817748499-8fbbd61a2f92" # Replace with your image URL
|
| 12 |
+
|
| 13 |
+
# Inject CSS with background image
|
| 14 |
+
st.markdown(f"""
|
| 15 |
<style>
|
| 16 |
.stApp {{
|
| 17 |
+
background-image: url("{bg_image_url}");
|
| 18 |
+
background-size: cover;
|
| 19 |
+
background-position: center;
|
| 20 |
+
background-repeat: no-repeat;
|
| 21 |
+
background-attachment: fixed;
|
| 22 |
+
}}
|
|
|
|
| 23 |
</style>
|
| 24 |
+
""", unsafe_allow_html=True)
|
| 25 |
+
|
| 26 |
st.write("Enter the customer details:")
|
| 27 |
|
| 28 |
# model
|