# app.py import streamlit as st import math import matplotlib.pyplot as plt import numpy as np # Page Configuration with Icon st.set_page_config( page_title="🔧 Pipe Sizing Helper", page_icon="💧", layout="centered" ) # Custom CSS for Styling st.markdown(""" """, unsafe_allow_html=True) # Header with Icon st.markdown("
Calculate optimal pipe size based on flow rate and velocity
", unsafe_allow_html=True) # User Inputs st.subheader("💡 Input Parameters") flow_rate = st.number_input("🌊 Enter Flow Rate (m³/s):", min_value=0.0, format="%.4f") velocity = st.number_input("💨 Enter Permissible Velocity (m/s):", min_value=0.1, format="%.2f") # Button for Calculation and Visualization st.markdown(" ", unsafe_allow_html=True) # Footer st.markdown(" ", unsafe_allow_html=True)