Update app.py
Browse files112 unmodified lines11311411511611711811920 unmodified lines1401411421431441451461475 unmodified lines153154155156157158159112 unmodified linesst.markdown("---")# Input formcompany_name = st.text_input("Company Name (optional)")# Important note about box stylest.info("For accurate results the box style must be a standard RSC container")20 unmodified lines# Calculate buttonif st.button("Calculate Box Cost"):if not all([box_length, box_width, box_height, material_type]):st.error("Please fill in all required fields marked with *")else:# Calculate the box costblank_area, cost = calculate_box_cost(box_length, box_width, box_height, material_type)5 unmodified lines# Prepare data for Google Sheetssheet_data = {"company_name": company_name,"box_length": box_length,"box_width": box_width,"box_height": box_height,112 unmodified lines11311411511611711811920 unmodified lines1401411421431441451461471481491505 unmodified lines156157158159160161162112 unmodified linesst.markdown("---")# Input formcompany_name = st.text_input("Company Name*", placeholder="Enter your company name")# Important note about box stylest.info("For accurate results the box style must be a standard RSC container")20 unmodified lines# Calculate buttonif st.button("Calculate Box Cost"):# Updated validation to include company_nameif not all([company_name.strip(), box_length, box_width, box_height, material_type]):st.error("Please fill in all required fields marked with *")if not company_name.strip():st.error("Company Name is required")else:# Calculate the box costblank_area, cost = calculate_box_cost(box_length, box_width, box_height, material_type)5 unmodified lines# Prepare data for Google Sheetssheet_data = {"company_name": company_name.strip(),"box_length": box_length,"box_width": box_width,"box_height": box_height,
app.py+6-3