import streamlit as st # Custom CSS to enhance the UI st.markdown( """ """, unsafe_allow_html=True ) st.image("https://via.placeholder.com/300", width=300, caption="Munir Bhai") # Add title and header with custom styles st.markdown("
Hi! Munir Bhai...
", unsafe_allow_html=True) st.markdown("
Welcome to the Interactive Form
", unsafe_allow_html=True) st.video("https://www.youtube.com/watch?v=gK03De6nb1Y") # Form container st.markdown("
", unsafe_allow_html=True) # Text input name = st.text_input("Enter your name") # Number input age = st.number_input("Enter your age", min_value=0, max_value=120, step=1) # Radio button for gender selection gender = st.radio("Enter your gender", ["Male", "Female"], horizontal=True) # Select box for city city = st.selectbox("Enter your city", ["None", "Delhi", "Mumbai", "Kolkata", "Chennai"]) # Select box for qualification qualification = st.selectbox( "Enter your qualification", ["None", "B.Tech", "M.Tech", "PhD"] ) # Submit button if st.button("Submit", key="submit-button"): st.markdown(f"
Hi, {name} Bhai!
", unsafe_allow_html=True) st.write(f"Your age is {age} years old.") st.write(f"Your gender is {gender}.") if city != "None": st.write(f"You live in {city}.") if qualification != "None": st.balloons() st.write(f"Your qualification is {qualification}.") # Close container st.markdown("
", unsafe_allow_html=True) # Sidebar content st.sidebar.markdown( """ """, unsafe_allow_html=True )