Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1031,6 +1031,34 @@ theme = Soft(primary_hue="emerald", neutral_hue="slate", radius_size="lg", spaci
|
|
| 1031 |
CSS = """
|
| 1032 |
.card { border: 1px solid var(--border-color-primary); border-radius: 12px; padding: 14px; background: var(--block-background-fill); }
|
| 1033 |
.small { font-size: 0.92rem; opacity: 0.95; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1034 |
"""
|
| 1035 |
|
| 1036 |
def allowed_species_choices():
|
|
@@ -1141,17 +1169,17 @@ with gr.Blocks(title="Algae Yield Predictor", theme=theme, css=CSS) as demo:
|
|
| 1141 |
outputs=doi_md
|
| 1142 |
)
|
| 1143 |
|
| 1144 |
-
# ----
|
| 1145 |
-
|
| 1146 |
-
|
| 1147 |
-
|
| 1148 |
-
|
| 1149 |
-
|
| 1150 |
-
|
| 1151 |
-
|
| 1152 |
-
|
| 1153 |
-
|
| 1154 |
|
| 1155 |
# Spaces auto-runs this
|
| 1156 |
if __name__ == "__main__":
|
| 1157 |
-
demo.launch()
|
|
|
|
| 1031 |
CSS = """
|
| 1032 |
.card { border: 1px solid var(--border-color-primary); border-radius: 12px; padding: 14px; background: var(--block-background-fill); }
|
| 1033 |
.small { font-size: 0.92rem; opacity: 0.95; }
|
| 1034 |
+
|
| 1035 |
+
/* --- persistent footer bar --- */
|
| 1036 |
+
.footer-bar {
|
| 1037 |
+
position: fixed;
|
| 1038 |
+
left: 0; right: 0; bottom: 0;
|
| 1039 |
+
z-index: 9999;
|
| 1040 |
+
display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
|
| 1041 |
+
padding: 10px 16px;
|
| 1042 |
+
border-top: 1px solid var(--border-color-primary);
|
| 1043 |
+
background: rgba(17, 24, 39, 0.85); /* slate-ish, semi-transparent */
|
| 1044 |
+
color: white;
|
| 1045 |
+
backdrop-filter: blur(6px);
|
| 1046 |
+
-webkit-backdrop-filter: blur(6px);
|
| 1047 |
+
font-size: 0.9rem;
|
| 1048 |
+
}
|
| 1049 |
+
.footer-bar a { color: #a7f3d0; text-decoration: none; }
|
| 1050 |
+
.footer-bar a:hover { text-decoration: underline; }
|
| 1051 |
+
|
| 1052 |
+
/* Spacer to prevent content being hidden behind the fixed footer */
|
| 1053 |
+
.footer-spacer { height: 56px; }
|
| 1054 |
+
|
| 1055 |
+
@media (max-width: 640px){
|
| 1056 |
+
.footer-bar { font-size: .82rem; padding: 8px 12px; }
|
| 1057 |
+
.footer-spacer { height: 48px; }
|
| 1058 |
+
}
|
| 1059 |
+
@media print {
|
| 1060 |
+
.footer-bar, .footer-spacer { display: none !important; }
|
| 1061 |
+
}
|
| 1062 |
"""
|
| 1063 |
|
| 1064 |
def allowed_species_choices():
|
|
|
|
| 1169 |
outputs=doi_md
|
| 1170 |
)
|
| 1171 |
|
| 1172 |
+
# ---- Persistent bottom bar ----
|
| 1173 |
+
gr.HTML("<div class='footer-spacer'></div>")
|
| 1174 |
+
gr.HTML("""
|
| 1175 |
+
<div class="footer-bar">
|
| 1176 |
+
<strong>Algae Yield Predictor</strong>
|
| 1177 |
+
路 Developed by <b>Ashutosh Tiwari (Lead)</b> with contributions from
|
| 1178 |
+
<span>Siddhant Dubey</span> & <span>Yamini Sumathi</span>.
|
| 1179 |
+
漏 2025. All rights reserved.
|
| 1180 |
+
</div>
|
| 1181 |
+
""")
|
| 1182 |
|
| 1183 |
# Spaces auto-runs this
|
| 1184 |
if __name__ == "__main__":
|
| 1185 |
+
demo.launch()
|