ashaddams commited on
Commit
4e14237
verified
1 Parent(s): 247e233

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -11
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
- # ---- Credits / Copyright footer ----
1145
- with gr.Row():
1146
- gr.Markdown(
1147
- "----\n"
1148
- "**Credits** \n"
1149
- "Developed by **Ashutosh Tiwari (Lead)**, with contributions from **Siddhant Dubey** and **Yamini Sumathi**. \n\n"
1150
- "**Copyright** \n"
1151
- "漏 2025 Ashutosh Tiwari and collaborators. All rights reserved.\n",
1152
- elem_classes=["small"]
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
+ &nbsp;路&nbsp; Developed by <b>Ashutosh Tiwari (Lead)</b> with contributions from
1178
+ <span>Siddhant Dubey</span> &amp; <span>Yamini Sumathi</span>.
1179
+ &nbsp;漏 2025. All rights reserved.
1180
+ </div>
1181
+ """)
1182
 
1183
  # Spaces auto-runs this
1184
  if __name__ == "__main__":
1185
+ demo.launch()