Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950518 unmodified lines606162636465666 unmodified lines7374757677788 unmodified lines8788899091929394959697983 unmodified lines10210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319413 unmodified lines208209210211212213214215216217218import streamlit as stst.set_page_config(page_title="HomePage",page_icon="🚀",layout="wide")# Global CSS for consistent styling across all pagesst.markdown("""<style>body, .stApp {color: #4F4F4F; /* Replace with your desired font color */background-color: #FFFFFF; /* Optional: Set a fixed background color */}h1, h2, h3, h4, h5, h6 {color: #BB3385; /* Replace with your heading color */}p {color: #4F4F4F; /* Replace with your paragraph text color */}ul li {color: #4F4F4F; /* List item color */}</style>""", unsafe_allow_html=True)st.markdown("""<style>.stApp {background-image: url("https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/DALL%C2%B7E%202024-12-03%2023.34.47%20-%20A%20simple%20and%20elegant%20background%20image%20for%20an%20AI-themed%20web%20application.%20The%20background%20should%20feature%20a%20soft%20gradient%20transitioning%20from%20white%20to%20ligh.webp");background-size: cover;background-repeat: no-repeat;background-attachment: fixed;}</style>""",unsafe_allow_html=True)# Title of the pagest.markdown("""<div style="text-align: center; margin-top: 20px;"><h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)# Circle Representation HTML and CSS (properly rendered)html_code = """<!DOCTYPE html><html lang="en"><head>8 unmodified linesalign-items: center;height: 100vh;margin: 0;background-color: #f4f4f9;}.container {text-align: center;6 unmodified linesheight: 350px;margin: 20px auto;border-radius: 50%;display: flex;justify-content: center;align-items: center;8 unmodified linesflex-wrap: wrap;}.step {background-color: #007bff;color: white;padding: 15px 30px;border-radius: 8px;cursor: pointer;width: 150px;margin: 10px;text-align: center;box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);3 unmodified linestransition: transform 0.5s ease-in-out;}.step:hover {background-color: #0056b3;}/* Different background colors for each step */#step1 {background-color: #ff5733;transform: rotate(0deg) translateX(140px) rotate(0deg);}#step2 {background-color: #33b5ff;transform: rotate(36deg) translateX(140px) rotate(-36deg);}#step3 {background-color: #33ff57;transform: rotate(72deg) translateX(140px) rotate(-72deg);}#step4 {background-color: #ff33cc;transform: rotate(108deg) translateX(140px) rotate(-108deg);}#step5 {background-color: #ffcc33;transform: rotate(144deg) translateX(140px) rotate(-144deg);}#step6 {background-color: #33ccff;transform: rotate(180deg) translateX(140px) rotate(-180deg);}#step7 {background-color: #ff33a1;transform: rotate(216deg) translateX(140px) rotate(-216deg);}#step8 {background-color: #66ff33;transform: rotate(252deg) translateX(140px) rotate(-252deg);}#step9 {background-color: #9933ff;transform: rotate(288deg) translateX(140px) rotate(-288deg);}#step10 {background-color: #f7a500;transform: rotate(324deg) translateX(140px) rotate(-324deg);}/* Rotate steps to form a circular layout */#step4 {transform: rotate(0deg) translateX(250px) rotate(0deg);}#step5 {transform: rotate(25deg) translateX(250px) rotate(-25deg);}#step6 {transform: rotate(60deg) translateX(250px) rotate(-60deg);}#step7 {transform: rotate(120deg) translateX(250px) rotate(-120deg);}#step8 {transform: rotate(155deg) translateX(250px) rotate(-155deg);}#step9 {transform: rotate(180deg) translateX(250px) rotate(-180deg);}#step10 {transform: rotate(205deg) translateX(250px) rotate(-205deg);}#step1 {transform: rotate(240deg) translateX(250px) rotate(-240deg);}#step2 {transform: rotate(300deg) translateX(250px) rotate(-300deg);}#step3 {transform: rotate(335deg) translateX(250px) rotate(-335deg);}a {color: white; /* Link color */text-decoration: none;}a:hover {color: yellow; /* Color on hover */text-decoration: underline; /* Underline on hover */}</style></head><body><div class="container"><h1></h1><div class="circle"><div class="steps"><div class="step" id="step1">1. Problem Statement</div>13 unmodified lines</html>"""# Streamlit: Display the HTML circle with properly spaced stepsst.markdown(html_code, unsafe_allow_html=True)st.write(' ')st.write(' ')st.write(' ')st.write(' ')st.write(' ')st.write(' ')123458 unmodified lines141516171819206 unmodified lines272829303132338 unmodified lines4243444546474849505152533 unmodified lines5758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610713 unmodified lines121122123124125# Updated HTML for professional and aesthetic appearancehtml_code_updated = """<!DOCTYPE html><html lang="en"><head>8 unmodified linesalign-items: center;height: 100vh;margin: 0;background-color: #f9f9f9;}.container {text-align: center;6 unmodified linesheight: 350px;margin: 20px auto;border-radius: 50%;background: url('https://via.placeholder.com/150') center/cover no-repeat; /* Replace with your desired image URL */display: flex;justify-content: center;align-items: center;8 unmodified linesflex-wrap: wrap;}.step {background-color: rgba(173, 216, 230, 0.8); /* Light pastel blue */color: #333;padding: 10px 20px;border-radius: 8px;cursor: pointer;width: 140px;margin: 10px;text-align: center;box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);3 unmodified linestransition: transform 0.5s ease-in-out;}.step:hover {background-color: rgba(135, 206, 250, 0.9); /* Slightly darker pastel blue on hover */}#step1 {transform: rotate(0deg) translateX(160px) rotate(0deg);}#step2 {transform: rotate(36deg) translateX(160px) rotate(-36deg);}#step3 {transform: rotate(72deg) translateX(160px) rotate(-72deg);}#step4 {transform: rotate(108deg) translateX(160px) rotate(-108deg);}#step5 {transform: rotate(144deg) translateX(160px) rotate(-144deg);}#step6 {transform: rotate(180deg) translateX(160px) rotate(-180deg);}#step7 {transform: rotate(216deg) translateX(160px) rotate(-216deg);}#step8 {transform: rotate(252deg) translateX(160px) rotate(-252deg);}#step9 {transform: rotate(288deg) translateX(160px) rotate(-288deg);}#step10 {transform: rotate(324deg) translateX(160px) rotate(-324deg);}a {color: #333;text-decoration: none;}a:hover {color: #000;text-decoration: underline;}</style></head><body><div class="container"><h1>Machine Learning Project Life Cycle</h1><div class="circle"><div class="steps"><div class="step" id="step1">1. Problem Statement</div>13 unmodified lines</html>"""# Streamlit: Display the updated HTMLst.markdown(html_code_updated, unsafe_allow_html=True)
pages/3Life Cycle of Machine Learning Project.py+25-118