Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def main():
|
|
26 |
|
27 |
# Step 2: Creating input table dynamically
|
28 |
machines_data = []
|
|
|
29 |
if machine_type == "SoftFlow":
|
30 |
enthalpy = get_enthalpy(6)['Saturation_Vapour(KCal/kg)']
|
31 |
mlr = 6
|
@@ -46,7 +47,7 @@ def main():
|
|
46 |
water_steam_consumption = mlr*quantity*1*overshoot
|
47 |
cloth_steam_consumption = quantity*1*overshoot
|
48 |
steam_consumption = (water_steam_consumption + cloth_steam_consumption)// enthalpy
|
49 |
-
|
50 |
machines_data.append({
|
51 |
"Machine Name": machine_name,
|
52 |
"Selected Machine Quantity (kg)": quantity,
|
@@ -66,7 +67,7 @@ def main():
|
|
66 |
max_overshoot = max(overshoot_values) if overshoot_values else 0
|
67 |
|
68 |
# Step 4: Editable Text Output
|
69 |
-
default_text = f"Currently there is temperature overshoot observed (from {min_overshoot}°C to {max_overshoot}°C) in heating, holding cycle in {machine_type} machine. Due to overshoot there is unnecessary heating. This leads to an increase in steam consumption. Estimated Steam Saving is {
|
70 |
user_text = st.text_area("Editable Report:", value=default_text, height=150)
|
71 |
|
72 |
st.write("### Final Report")
|
|
|
26 |
|
27 |
# Step 2: Creating input table dynamically
|
28 |
machines_data = []
|
29 |
+
steam = 0
|
30 |
if machine_type == "SoftFlow":
|
31 |
enthalpy = get_enthalpy(6)['Saturation_Vapour(KCal/kg)']
|
32 |
mlr = 6
|
|
|
47 |
water_steam_consumption = mlr*quantity*1*overshoot
|
48 |
cloth_steam_consumption = quantity*1*overshoot
|
49 |
steam_consumption = (water_steam_consumption + cloth_steam_consumption)// enthalpy
|
50 |
+
steam = steam + steam_consumption
|
51 |
machines_data.append({
|
52 |
"Machine Name": machine_name,
|
53 |
"Selected Machine Quantity (kg)": quantity,
|
|
|
67 |
max_overshoot = max(overshoot_values) if overshoot_values else 0
|
68 |
|
69 |
# Step 4: Editable Text Output
|
70 |
+
default_text = f"Currently there is temperature overshoot observed (from {min_overshoot}°C to {max_overshoot}°C) in heating, holding cycle in {machine_type} machine. Due to overshoot there is unnecessary heating. This leads to an increase in steam consumption. Estimated Steam Saving is {steam} Kg/day."
|
71 |
user_text = st.text_area("Editable Report:", value=default_text, height=150)
|
72 |
|
73 |
st.write("### Final Report")
|