Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files473 unmodified lines474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551473 unmodified linesdef demographic_form():"""فرم اطلاعات دموگرافیک"""st.markdown("""<style>/* استایل کلی تمام عناصر فرم */.stNumberInput input,.stSelectbox select,.stTextInput input,.stTextArea textarea {color: #333333 !important;background-color: white !important;border: 1px solid #6a0dad !important;border-radius: 8px !important;padding: 8px 12px !important;font-family: 'Vazir' !important;}/* استایل پسزمینه اصلی فرم */.stForm {background-color: white !important;padding: 20px;border-radius: 10px;box-shadow: 0 2px 10px rgba(0,0,0,0.1);}/* استایل placeholder */.stNumberInput input::placeholder,.stTextInput input::placeholder {color: #666666 !important;opacity: 1 !important;}/* استایل دکمه submit */.stFormSubmitButton button {background-color: white !important;color: #6a0dad !important;border: 1px solid #6a0dad !important;border-radius: 8px !important;padding: 10px 24px !important;font-family: 'Vazir' !important;font-weight: bold !important;transition: all 0.3s ease !important;width: 100% !important;}.stFormSubmitButton button:hover {background-color: #f0e6ff !important;}/* استایل لیبلها */.st-emotion-cache-1v0mbdj p,.st-emotion-cache-1v0mbdj div {color: #333333 !important;font-family: 'Vazir' !important;}</style>""", unsafe_allow_html=True)with st.form("demographic"):st.header("📝 اطلاعات دموگرافیک")age = st.number_input("سن", min_value=18, max_value=100,placeholder="سن خود را وارد کنید")gender = st.selectbox("جنسیت", ["مرد", "زن", "سایر"])education = st.selectbox("تحصیلات", ["دیپلم", "لیسانس", "فوق لیسانس", "دکترا"])ride_frequency = st.selectbox("دفعات استفاده از سرویسهای اشتراک سفر در ماه",["کمتر از 5 بار", "5-10 بار", "بیش از 10 بار"])submit_button = st.button("ادامه", key="continue_btn", type="primary")if submit_button:st.session_state.demographic_data = {"age": age,"gender": gender,473 unmodified lines474475476477478479480481482483484485486487488473 unmodified linesdef demographic_form():"""فرم اطلاعات دموگرافیک"""with st.form("demographic"):st.header("📝 اطلاعات دموگرافیک")age = st.number_input("سن", min_value=18, max_value=100)gender = st.selectbox("جنسیت", ["مرد", "زن", "سایر"])education = st.selectbox("تحصیلات", ["دیپلم", "لیسانس", "فوق لیسانس", "دکترا"])ride_frequency = st.selectbox("دفعات استفاده از سرویسهای اشتراک سفر در ماه",["کمتر از 5 بار", "5-10 بار", "بیش از 10 بار"])if st.button("ادامه", key="continue_btn", type="primary"):st.session_state.demographic_data = {"age": age,"gender": gender,
app.py+2-65