Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -165,7 +165,7 @@ BREED_INFO = {
|
|
| 165 |
},
|
| 166 |
"Arbor Acres": {
|
| 167 |
"description": "Balanced growth, hardy and adaptable. Great survival rate.",
|
| 168 |
-
"available_at": "Supreme, CHI,
|
| 169 |
"color": "#00A86B"
|
| 170 |
}
|
| 171 |
}
|
|
@@ -1048,6 +1048,27 @@ CSS = """
|
|
| 1048 |
--danger: #b42318;
|
| 1049 |
}
|
| 1050 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1051 |
/* =========================
|
| 1052 |
GLOBAL MOBILE-FIRST UI
|
| 1053 |
========================= */
|
|
@@ -1621,14 +1642,14 @@ with gr.Blocks(title=APP_NAME, analytics_enabled=False) as demo:
|
|
| 1621 |
<h1>How Much Feed?</h1>
|
| 1622 |
</div>
|
| 1623 |
</div>
|
| 1624 |
-
<p>Broiler feed calculator — find out how
|
| 1625 |
</header>
|
| 1626 |
""")
|
| 1627 |
|
| 1628 |
gr.HTML("""
|
| 1629 |
<div class="status-card">
|
| 1630 |
<strong>✓ Simple farmer estimate</strong><br>
|
| 1631 |
-
Enter your breed, flock size, age and feed price. The calculator shows
|
| 1632 |
</div>
|
| 1633 |
""")
|
| 1634 |
|
|
@@ -1668,7 +1689,7 @@ with gr.Blocks(title=APP_NAME, analytics_enabled=False) as demo:
|
|
| 1668 |
choices=[10, 20, 25, 50, 100], value=25, label="Bag size (kg)", scale=1
|
| 1669 |
)
|
| 1670 |
price = gr.Number(
|
| 1671 |
-
value=24000, label="Price per bag
|
| 1672 |
)
|
| 1673 |
|
| 1674 |
with gr.Group(elem_classes=["form-section"]):
|
|
|
|
| 165 |
},
|
| 166 |
"Arbor Acres": {
|
| 167 |
"description": "Balanced growth, hardy and adaptable. Great survival rate.",
|
| 168 |
+
"available_at": "Supreme, CHI,Vertex, Fidan, Cascada, Sunchi, Farm Support e.t.c",
|
| 169 |
"color": "#00A86B"
|
| 170 |
}
|
| 171 |
}
|
|
|
|
| 1048 |
--danger: #b42318;
|
| 1049 |
}
|
| 1050 |
|
| 1051 |
+
/* ============================================================
|
| 1052 |
+
HIDE HUGGING FACE SPACE HEADER
|
| 1053 |
+
============================================================ */
|
| 1054 |
+
|
| 1055 |
+
#huggingface-space-header,
|
| 1056 |
+
#space-header__collapse,
|
| 1057 |
+
.hf-header,
|
| 1058 |
+
[data-testid="header"],
|
| 1059 |
+
.huggingface-space-header {
|
| 1060 |
+
display: none !important;
|
| 1061 |
+
visibility: hidden !important;
|
| 1062 |
+
height: 0 !important;
|
| 1063 |
+
min-height: 0 !important;
|
| 1064 |
+
max-height: 0 !important;
|
| 1065 |
+
padding: 0 !important;
|
| 1066 |
+
margin: 0 !important;
|
| 1067 |
+
border: 0 !important;
|
| 1068 |
+
overflow: hidden !important;
|
| 1069 |
+
pointer-events: none !important;
|
| 1070 |
+
}
|
| 1071 |
+
|
| 1072 |
/* =========================
|
| 1073 |
GLOBAL MOBILE-FIRST UI
|
| 1074 |
========================= */
|
|
|
|
| 1642 |
<h1>How Much Feed?</h1>
|
| 1643 |
</div>
|
| 1644 |
</div>
|
| 1645 |
+
<p>Broiler feed calculator — find out how many bags of feed you need for your birds.</p>
|
| 1646 |
</header>
|
| 1647 |
""")
|
| 1648 |
|
| 1649 |
gr.HTML("""
|
| 1650 |
<div class="status-card">
|
| 1651 |
<strong>✓ Simple farmer estimate</strong><br>
|
| 1652 |
+
Enter your breed, flock size, age and feed price. The calculator shows how much feed you need and the number of bags to buy.
|
| 1653 |
</div>
|
| 1654 |
""")
|
| 1655 |
|
|
|
|
| 1689 |
choices=[10, 20, 25, 50, 100], value=25, label="Bag size (kg)", scale=1
|
| 1690 |
)
|
| 1691 |
price = gr.Number(
|
| 1692 |
+
value=24000, label="Price per bag ", minimum=0, scale=1
|
| 1693 |
)
|
| 1694 |
|
| 1695 |
with gr.Group(elem_classes=["form-section"]):
|