Abdullah-Basar commited on
Commit
cad497b
·
verified ·
1 Parent(s): 8f76ca8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,7 +13,7 @@ st.sidebar.title("How to Use")
13
  st.sidebar.write("""
14
  1. Enter the flow rate of the fluid in m³/s.
15
  2. Enter the velocity of the fluid in m/s.
16
- 3. Click **Calculate** to get the required pipe diameter.
17
  4. Reset inputs using the **Clear Inputs** button.
18
  """)
19
 
@@ -22,8 +22,8 @@ st.subheader("Input Parameters")
22
  flow_rate = st.number_input("Flow Rate (Q) in m³/s:", min_value=0.0, format="%.6f", step=0.01)
23
  velocity = st.number_input("Fluid Velocity (v) in m/s:", min_value=0.1, format="%.2f", step=0.1)
24
 
25
- # Calculate Button
26
- if st.button("Calculate"):
27
  if flow_rate <= 0:
28
  st.error("Flow rate must be greater than zero!")
29
  elif velocity <= 0:
 
13
  st.sidebar.write("""
14
  1. Enter the flow rate of the fluid in m³/s.
15
  2. Enter the velocity of the fluid in m/s.
16
+ 3. Click **Generate Pipe Diameter** to calculate the required pipe diameter.
17
  4. Reset inputs using the **Clear Inputs** button.
18
  """)
19
 
 
22
  flow_rate = st.number_input("Flow Rate (Q) in m³/s:", min_value=0.0, format="%.6f", step=0.01)
23
  velocity = st.number_input("Fluid Velocity (v) in m/s:", min_value=0.1, format="%.2f", step=0.1)
24
 
25
+ # Generate Pipe Diameter Button
26
+ if st.button("Generate Pipe Diameter"):
27
  if flow_rate <= 0:
28
  st.error("Flow rate must be greater than zero!")
29
  elif velocity <= 0: