DanielRegaladoCardoso commited on
Commit
4a4f638
·
verified ·
1 Parent(s): 4660daf

Add quota banner with HF login link in header

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -100,6 +100,23 @@ footer { display: none !important; }
100
  .app-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
101
  .app-subtitle { font-size: 13px; color: var(--ink-muted); }
102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  /* File upload — compact, Apple-style */
104
  .upload-row { margin-bottom: 18px; }
105
  .upload-row .gr-file, .upload-row .file-preview { background: transparent !important; }
@@ -627,6 +644,11 @@ def build_app() -> gr.Blocks:
627
  '<div class="app-subtitle">Ask anything about your data.</div>'
628
  '</div>'
629
  '</div>'
 
 
 
 
 
630
  )
631
 
632
  # Upload
 
100
  .app-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
101
  .app-subtitle { font-size: 13px; color: var(--ink-muted); }
102
 
103
+ .quota-banner {
104
+ font-size: 12px;
105
+ color: var(--ink-muted);
106
+ background: var(--accent-soft);
107
+ border: 1px solid var(--ink-faint);
108
+ border-radius: var(--radius-sm);
109
+ padding: 9px 14px;
110
+ margin: -16px 0 22px;
111
+ line-height: 1.5;
112
+ }
113
+ .quota-banner a {
114
+ color: var(--accent);
115
+ text-decoration: none;
116
+ font-weight: 500;
117
+ }
118
+ .quota-banner a:hover { text-decoration: underline; }
119
+
120
  /* File upload — compact, Apple-style */
121
  .upload-row { margin-bottom: 18px; }
122
  .upload-row .gr-file, .upload-row .file-preview { background: transparent !important; }
 
644
  '<div class="app-subtitle">Ask anything about your data.</div>'
645
  '</div>'
646
  '</div>'
647
+ '<div class="quota-banner">'
648
+ 'Running on HF ZeroGPU. '
649
+ '<a href="https://huggingface.co/login" target="_blank" rel="noopener">Sign in to Hugging Face</a> '
650
+ 'for the full daily GPU quota (anonymous users hit limits fast).'
651
+ '</div>'
652
  )
653
 
654
  # Upload