jrrribeiro commited on
Commit
dbfb2bf
·
verified ·
1 Parent(s): 72de27a

Sync app from GitHub Actions (main)

Browse files
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ assets/readme/admin-workspace-demo.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -15,51 +15,144 @@ pinned: false
15
 
16
  # BirdNET Validator
17
 
18
- BirdNET Validator is a Gradio app for collaborative review of BirdNET audio
19
- segments stored in Hugging Face datasets. It is designed for research teams that
20
- need authenticated validators, private project state, validation progress, and
21
- downloadable scientific tables.
22
-
23
- The uploader is maintained separately in `HF_Dataset_Uploader`. This repository
24
- contains only the validator app.
25
-
26
- ## Current Architecture
27
-
28
- - Hugging Face OAuth identifies the signed-in validator.
29
- - Each project points to one Hugging Face dataset containing audio segments and
30
- metadata/index files.
31
- - Project metadata and access rules live in a private companion dataset repo
32
- named with the `_state` suffix.
33
- - Validation events and current validation snapshots are stored in private
34
- Hugging Face storage controlled by the app backend.
35
- - Project access, invitations, validation status, progress, and exports are
36
- managed from the app UI.
37
-
38
- ## Main Features
39
-
40
- - Secure Hugging Face sign-in with app-managed project access.
41
- - Admin project creation, state connection, token management, invitations, and
42
- safe deletion.
43
- - Validation queue organized by species, confidence, and pending status.
44
- - Audio playback, spectrogram preview, keyboard shortcuts, and correction rules.
45
- - Required corrected species when rejecting a segment.
46
- - Progress dashboards by species, validator, and recent activity.
47
- - CSV/XLSX export combining the original detection table with validation fields.
48
-
49
- ## Required Space Secret
50
-
51
- For the current private HF storage mode, configure this secret in the Hugging
52
- Face Space:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  ```text
55
  BIRDNET_HF_STORAGE_TOKEN
56
  ```
57
 
58
- Use a Hugging Face token from the Space/project owner account with enough
59
- permission to create, read, write, and delete the private project state repos and
60
  validation storage used by the app.
61
 
62
- ## Useful Optional Settings
63
 
64
  ```text
65
  BIRDNET_PAGE_SIZE=10
@@ -70,7 +163,7 @@ BIRDNET_INVITE_FROM_EMAIL=
70
  BIRDNET_INVITE_REPLY_TO=
71
  ```
72
 
73
- EmailJS settings are optional and only needed when email invitations are enabled:
74
 
75
  ```text
76
  BIRDNET_EMAILJS_SERVICE_ID=
@@ -79,6 +172,79 @@ BIRDNET_EMAILJS_PUBLIC_KEY=
79
  BIRDNET_EMAILJS_PRIVATE_KEY=
80
  ```
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  ## Local Development
83
 
84
  ```bash
@@ -89,15 +255,31 @@ pip install -r requirements.txt
89
  python app.py
90
  ```
91
 
92
- Then open:
93
 
94
  ```text
95
  http://127.0.0.1:7860
96
  ```
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  ## Verification
99
 
100
- Run the automated tests:
101
 
102
  ```bash
103
  pytest -q
@@ -113,6 +295,7 @@ python scripts/check_deployment.py
113
 
114
  ```text
115
  app.py Gradio app entry point
 
116
  src/auth/ Hugging Face identity and access helpers
117
  src/cache/ Ephemeral audio/cache utilities
118
  src/config/ Runtime configuration
@@ -126,7 +309,33 @@ tests/ Unit and integration tests
126
 
127
  ## Deployment
128
 
129
- The GitHub workflow `sync-hf-space.yml` uploads `main` to the Hugging Face Space.
130
- Set the GitHub Actions secret `HF_TOKEN` with write access to the target Space.
 
 
 
 
 
 
131
 
132
  The CI workflow runs tests on every push and pull request to `main`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  # BirdNET Validator
17
 
18
+ Professional collaborative validation for BirdNET audio segments hosted in
19
+ Hugging Face datasets.
20
+
21
+ BirdNET Validator helps research teams review thousands to millions of
22
+ BirdNET-extracted audio segments with authenticated users, project-level access,
23
+ private validation state, progress dashboards, and clean scientific exports.
24
+
25
+ > Screenshots below are captured from a local demo workspace. Production Spaces
26
+ > use Hugging Face OAuth and private Hugging Face-backed storage.
27
+
28
+ ![BirdNET Validator admin workspace](assets/readme/admin-workspace-demo.png)
29
+
30
+ ## What It Solves
31
+
32
+ Large BirdNET runs can produce huge volumes of short audio segments. Reviewing
33
+ those segments manually becomes difficult when several validators need to work
34
+ at the same time without duplicating effort or losing provenance.
35
+
36
+ BirdNET Validator provides a shared validation workspace where:
37
+
38
+ - administrators register datasets and manage project access;
39
+ - validators review audio by species, confidence, and status;
40
+ - every decision is attributed to a signed-in user;
41
+ - rejected detections require a corrected species label;
42
+ - progress can be monitored by project, species, and validator;
43
+ - exports combine the original detection metadata with validation results.
44
+
45
+ ## Core Workflow
46
+
47
+ ```mermaid
48
+ flowchart LR
49
+ A[BirdNET segments in a HF Dataset] --> B[Create project in the app]
50
+ B --> C[Invite or assign validators]
51
+ C --> D[Validate audio segments by species]
52
+ D --> E[Track project progress]
53
+ E --> F[Export CSV/XLSX for analysis]
54
+ ```
55
+
56
+ 1. Upload BirdNET segments to a Hugging Face dataset.
57
+ 2. Create a project in BirdNET Validator using the dataset repo ID.
58
+ 3. Add project-level access for validators.
59
+ 4. Select a project and species in the validation workbench.
60
+ 5. Validate each segment as confirmed, rejected, uncertain, skipped, or favorite.
61
+ 6. Download a complete CSV/XLSX table at any point in the project lifecycle.
62
+
63
+ ![Project selection workspace](assets/readme/project-selection-demo.png)
64
+
65
+ ## User Roles
66
+
67
+ | Role | Purpose | Main Capabilities |
68
+ | --- | --- | --- |
69
+ | Admin | Owns and manages a validation project | Create projects, connect private state, update tokens, invite users, assign roles, delete owned projects, export results |
70
+ | Validator | Reviews assigned project segments | Select authorized projects, validate audio, add corrected species, add notes, monitor personal/project progress |
71
+
72
+ Access is scoped per project. A user can be an admin in one project and a
73
+ validator in another.
74
+
75
+ ## Validation Experience
76
+
77
+ The validation tab is optimized for repeated review work:
78
+
79
+ - species-level queues prioritize pending detections first;
80
+ - pending detections are sorted from highest to lowest confidence;
81
+ - already reviewed segments move behind pending segments;
82
+ - fully reviewed species show a completion message instead of silently restarting;
83
+ - validators can still manually select rows to revisit or correct earlier work;
84
+ - rejected segments cannot be saved until `Corrected species` is filled;
85
+ - the corrected label is stored as both `validation_corrected_species` and the
86
+ effective scientific label for downstream analysis.
87
+
88
+ Keyboard shortcuts are active only in the validation workspace:
89
+
90
+ | Shortcut | Action |
91
+ | --- | --- |
92
+ | Up arrow | Confirm |
93
+ | Down arrow | Reject |
94
+ | Left arrow | Uncertain |
95
+ | Right arrow | Skip |
96
+ | Space | Favorite |
97
+
98
+ ## Progress And Scientific Export
99
+
100
+ The Progress tab summarizes validation coverage and activity while preserving a
101
+ download path for analysis.
102
+
103
+ ![Progress dashboard](assets/readme/progress-dashboard-demo.png)
104
+
105
+ Exports include the full detection table, even when validation is still in
106
+ progress. Validation fields are appended in a predictable block:
107
+
108
+ | Field | Meaning |
109
+ | --- | --- |
110
+ | `validation_status` | Current validation status |
111
+ | `validation_corrected_species` | Species entered when a detection is rejected |
112
+ | `validation_effective_species` | Corrected species when available; otherwise original species |
113
+ | `validation_notes` | Validator notes |
114
+ | `validation_validator` | User who saved the latest validation |
115
+ | `validation_updated_at` | Timestamp of the latest validation |
116
+ | `validation_version` | Current version number for that detection |
117
+ | `validation_conflict` | Whether a concurrency conflict was detected |
118
+ | `validation_conflict_reason` | Conflict explanation when available |
119
+ | `validation_reviewed` | Boolean review flag derived from validation status |
120
+
121
+ CSV and XLSX exports are intended for scientific workflows, reproducible
122
+ summaries, and downstream statistical analysis.
123
+
124
+ ## Privacy And Storage Model
125
+
126
+ The current production model is built around Hugging Face infrastructure:
127
+
128
+ - Users sign in with their own Hugging Face identity.
129
+ - Audio segments live in Hugging Face datasets.
130
+ - Each project can use a private companion state dataset named with the
131
+ `_state` suffix.
132
+ - Validation state is stored in private Hugging Face-backed storage managed by
133
+ the app backend.
134
+ - Project access is enforced by the application layer using project ACLs and
135
+ invitations.
136
+
137
+ This model is designed for trusted research groups that need to keep datasets
138
+ private from external users while allowing multiple authorized validators to work
139
+ in parallel.
140
+
141
+ ## Hugging Face Space Configuration
142
+
143
+ ### Required Space Secret
144
+
145
+ Configure this secret in the Hugging Face Space:
146
 
147
  ```text
148
  BIRDNET_HF_STORAGE_TOKEN
149
  ```
150
 
151
+ Use a Hugging Face token from the project/Space owner account with permissions
152
+ to create, read, write, and delete the private project state repositories and
153
  validation storage used by the app.
154
 
155
+ ### Recommended Optional Settings
156
 
157
  ```text
158
  BIRDNET_PAGE_SIZE=10
 
163
  BIRDNET_INVITE_REPLY_TO=
164
  ```
165
 
166
+ EmailJS is optional and only needed when email invitations are enabled:
167
 
168
  ```text
169
  BIRDNET_EMAILJS_SERVICE_ID=
 
172
  BIRDNET_EMAILJS_PRIVATE_KEY=
173
  ```
174
 
175
+ ## Dataset Requirements
176
+
177
+ Each project should point to a Hugging Face dataset containing BirdNET audio
178
+ segments and metadata produced by the uploader workflow.
179
+
180
+ Recommended dataset structure:
181
+
182
+ ```text
183
+ audio/
184
+ Species_name/
185
+ shard-000000/
186
+ recorder_timestamp_start-end_confidence__key.wav
187
+ index/
188
+ files.parquet
189
+ validation/
190
+ detections.csv or detections.parquet
191
+ ```
192
+
193
+ The app can derive queue metadata from the dataset index and enrich exports with
194
+ the original detection table when available.
195
+
196
+ For private or gated datasets, add a project token in the Admin tab so the app
197
+ can read audio and metadata during validation.
198
+
199
+ ## Using The App
200
+
201
+ ### 1. Sign In
202
+
203
+ Open the Space and sign in with Hugging Face. In local development mode, a
204
+ username login can be enabled for testing.
205
+
206
+ ![Local demo login](assets/readme/login-local-demo.png)
207
+
208
+ ### 2. Create Or Connect A Project
209
+
210
+ In the Admin tab:
211
+
212
+ 1. Enter a stable project slug.
213
+ 2. Add the project display name.
214
+ 3. Add the Hugging Face dataset repo ID.
215
+ 4. Choose visibility.
216
+ 5. Add a dataset token when the source dataset is private or gated.
217
+ 6. Create the project.
218
+
219
+ The app prepares the project state structure and registers the creator as admin.
220
+
221
+ ### 3. Add Validators
222
+
223
+ Admins can assign a known Hugging Face username directly or send an invite for
224
+ later acceptance. Pending invites can be reviewed and revoked from the Admin
225
+ tab.
226
+
227
+ ### 4. Validate Segments
228
+
229
+ In the Validate tab:
230
+
231
+ 1. Select an authorized project.
232
+ 2. Choose a species.
233
+ 3. Optionally filter by confidence, status, validator, date, or conflicts.
234
+ 4. Review the spectrogram and audio.
235
+ 5. Save a validation decision.
236
+ 6. Continue through the pending queue.
237
+
238
+ ### 5. Monitor Progress
239
+
240
+ Use the Progress tab to review:
241
+
242
+ - coverage by species;
243
+ - validator activity;
244
+ - recent validation activity;
245
+ - remaining items;
246
+ - complete CSV/XLSX exports.
247
+
248
  ## Local Development
249
 
250
  ```bash
 
255
  python app.py
256
  ```
257
 
258
+ Open:
259
 
260
  ```text
261
  http://127.0.0.1:7860
262
  ```
263
 
264
+ For a clean local demo workspace:
265
+
266
+ ```powershell
267
+ $env:BIRDNET_ENABLE_DEMO_BOOTSTRAP="true"
268
+ $env:BIRDNET_AUTH_MODE="username"
269
+ python app.py
270
+ ```
271
+
272
+ Demo usernames:
273
+
274
+ ```text
275
+ admin_user
276
+ demo_user
277
+ validator_demo
278
+ ```
279
+
280
  ## Verification
281
 
282
+ Run the automated test suite:
283
 
284
  ```bash
285
  pytest -q
 
295
 
296
  ```text
297
  app.py Gradio app entry point
298
+ assets/readme/ README screenshots
299
  src/auth/ Hugging Face identity and access helpers
300
  src/cache/ Ephemeral audio/cache utilities
301
  src/config/ Runtime configuration
 
309
 
310
  ## Deployment
311
 
312
+ The GitHub workflow `sync-hf-space.yml` uploads `main` to the Hugging Face
313
+ Space. Configure the GitHub Actions secret:
314
+
315
+ ```text
316
+ HF_TOKEN
317
+ ```
318
+
319
+ The token must have write access to the target Space.
320
 
321
  The CI workflow runs tests on every push and pull request to `main`.
322
+
323
+ ## Suggested GitHub About
324
+
325
+ **Description**
326
+
327
+ ```text
328
+ Collaborative BirdNET audio-segment validation app for research teams, with Hugging Face OAuth, private project state, multi-validator workflows, progress dashboards, and CSV/XLSX scientific exports.
329
+ ```
330
+
331
+ **Website**
332
+
333
+ ```text
334
+ https://huggingface.co/spaces/jrrribeiro/BirdNET-Validator-App
335
+ ```
336
+
337
+ **Topics**
338
+
339
+ ```text
340
+ birdnet, bioacoustics, biodiversity-monitoring, audio-validation, gradio, huggingface-spaces, research-software, scientific-workflows, machine-learning-datasets, python
341
+ ```
assets/readme/admin-workspace-demo.png ADDED

Git LFS Details

  • SHA256: 35ccb43a707921eebe5d7905ab6d238aa010debf576d26b6884ee2e834ceeb2e
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
assets/readme/login-local-demo.png ADDED
assets/readme/progress-dashboard-demo.png ADDED
assets/readme/project-selection-demo.png ADDED
src/ui/theme.py CHANGED
@@ -5,6 +5,7 @@ CRITICAL_HEAD_HTML = """
5
  --bn-shell-width: min(1540px, calc(100vw - 32px));
6
  --bn-content-width: clamp(1200px, 78vw, 1490px);
7
  --bn-login-width: min(680px, calc(100vw - 32px));
 
8
  }
9
 
10
  html,
@@ -15,6 +16,7 @@ main.app,
15
  .contain,
16
  .gradio-container {
17
  background: var(--bn-bg) !important;
 
18
  }
19
 
20
  .gradio-container {
@@ -126,6 +128,7 @@ APP_CSS = """
126
  --bn-warning: #b54708;
127
  --bn-info: #255db3;
128
  --bn-shadow: 0 8px 24px rgba(20, 32, 51, 0.07);
 
129
  }
130
 
131
  html,
@@ -137,6 +140,7 @@ main.app,
137
  .gradio-container {
138
  background: var(--bn-bg) !important;
139
  color: var(--bn-text) !important;
 
140
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
141
  }
142
 
@@ -1720,6 +1724,13 @@ select {
1720
  border-radius: 7px !important;
1721
  }
1722
 
 
 
 
 
 
 
 
1723
  @media (max-width: 1280px) {
1724
  :root {
1725
  --bn-content-width: calc(100vw - 32px);
@@ -1732,6 +1743,42 @@ select {
1732
  align-items: flex-start;
1733
  }
1734
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1735
  .bn-header-status {
1736
  justify-content: flex-start;
1737
  }
@@ -1784,6 +1831,285 @@ select {
1784
  grid-template-columns: 1fr;
1785
  }
1786
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1787
  }
1788
 
1789
  @media (max-width: 560px) {
 
5
  --bn-shell-width: min(1540px, calc(100vw - 32px));
6
  --bn-content-width: clamp(1200px, 78vw, 1490px);
7
  --bn-login-width: min(680px, calc(100vw - 32px));
8
+ color-scheme: light;
9
  }
10
 
11
  html,
 
16
  .contain,
17
  .gradio-container {
18
  background: var(--bn-bg) !important;
19
+ color-scheme: light !important;
20
  }
21
 
22
  .gradio-container {
 
128
  --bn-warning: #b54708;
129
  --bn-info: #255db3;
130
  --bn-shadow: 0 8px 24px rgba(20, 32, 51, 0.07);
131
+ color-scheme: light;
132
  }
133
 
134
  html,
 
140
  .gradio-container {
141
  background: var(--bn-bg) !important;
142
  color: var(--bn-text) !important;
143
+ color-scheme: light !important;
144
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
145
  }
146
 
 
1724
  border-radius: 7px !important;
1725
  }
1726
 
1727
+ textarea,
1728
+ input,
1729
+ select,
1730
+ button {
1731
+ color-scheme: light !important;
1732
+ }
1733
+
1734
  @media (max-width: 1280px) {
1735
  :root {
1736
  --bn-content-width: calc(100vw - 32px);
 
1743
  align-items: flex-start;
1744
  }
1745
 
1746
+ html,
1747
+ body,
1748
+ gradio-app,
1749
+ main.app,
1750
+ .wrap,
1751
+ .contain,
1752
+ .gradio-container,
1753
+ .bn-shell {
1754
+ background: var(--bn-bg) !important;
1755
+ color: var(--bn-text) !important;
1756
+ color-scheme: light !important;
1757
+ }
1758
+
1759
+ .bn-tabs .tab-nav,
1760
+ .tabs .tab-nav {
1761
+ background: transparent !important;
1762
+ }
1763
+
1764
+ .bn-tabs button,
1765
+ .tabs button,
1766
+ .bn-tabs [role="tab"],
1767
+ .tabs [role="tab"] {
1768
+ background: transparent !important;
1769
+ color: var(--bn-text) !important;
1770
+ opacity: 1 !important;
1771
+ -webkit-text-fill-color: var(--bn-text) !important;
1772
+ }
1773
+
1774
+ .bn-tabs button.selected,
1775
+ .tabs button.selected,
1776
+ .bn-tabs [role="tab"][aria-selected="true"],
1777
+ .tabs [role="tab"][aria-selected="true"] {
1778
+ color: #f97316 !important;
1779
+ -webkit-text-fill-color: #f97316 !important;
1780
+ }
1781
+
1782
  .bn-header-status {
1783
  justify-content: flex-start;
1784
  }
 
1831
  grid-template-columns: 1fr;
1832
  }
1833
 
1834
+ .bn-brand-kicker,
1835
+ .bn-section-title,
1836
+ .bn-brand-title,
1837
+ .bn-empty-title,
1838
+ .bn-selected-species,
1839
+ .bn-project-context-title,
1840
+ .bn-project-name,
1841
+ .bn-kpi-value,
1842
+ .bn-health-value {
1843
+ color: var(--bn-text) !important;
1844
+ opacity: 1 !important;
1845
+ -webkit-text-fill-color: var(--bn-text) !important;
1846
+ }
1847
+
1848
+ .bn-brand-subtitle,
1849
+ .bn-compact-note,
1850
+ .bn-project-context-subtitle,
1851
+ .bn-selected-audio,
1852
+ .bn-kpi-hint,
1853
+ .bn-kpi-label,
1854
+ .bn-health-label {
1855
+ color: var(--bn-muted) !important;
1856
+ opacity: 1 !important;
1857
+ -webkit-text-fill-color: var(--bn-muted) !important;
1858
+ }
1859
+
1860
+ .bn-panel [data-testid="markdown"],
1861
+ .bn-panel [data-testid="markdown"] *,
1862
+ .bn-login-panel [data-testid="markdown"],
1863
+ .bn-login-panel [data-testid="markdown"] *,
1864
+ .bn-media-panel [data-testid="markdown"],
1865
+ .bn-media-panel [data-testid="markdown"] *,
1866
+ .bn-sidebar-panel [data-testid="markdown"],
1867
+ .bn-sidebar-panel [data-testid="markdown"] *,
1868
+ .bn-admin-panel [data-testid="markdown"],
1869
+ .bn-admin-panel [data-testid="markdown"] *,
1870
+ .bn-report-panel [data-testid="markdown"],
1871
+ .bn-report-panel [data-testid="markdown"] * {
1872
+ color: var(--bn-text) !important;
1873
+ opacity: 1 !important;
1874
+ -webkit-text-fill-color: var(--bn-text) !important;
1875
+ }
1876
+
1877
+ .bn-panel,
1878
+ .bn-panel-soft,
1879
+ .bn-login-panel,
1880
+ .bn-media-panel,
1881
+ .bn-sidebar-panel,
1882
+ .bn-report-panel,
1883
+ .bn-admin-panel,
1884
+ .bn-selected-card,
1885
+ .bn-project-context,
1886
+ .bn-project-card,
1887
+ .bn-kpi-card,
1888
+ .bn-health-row,
1889
+ .bn-empty-state,
1890
+ .bn-status-strip {
1891
+ background: #ffffff !important;
1892
+ color: var(--bn-text) !important;
1893
+ color-scheme: light !important;
1894
+ }
1895
+
1896
+ .bn-login-panel,
1897
+ .bn-login-panel .block,
1898
+ .bn-login-panel .form,
1899
+ .bn-login-panel .wrap,
1900
+ .bn-login-panel .contain,
1901
+ .bn-login-panel .styler,
1902
+ .bn-login-panel .input-container,
1903
+ .bn-login-panel .wrap-inner,
1904
+ .bn-login-panel .secondary-wrap,
1905
+ .bn-login-panel label,
1906
+ .bn-login-panel textarea,
1907
+ .bn-login-panel input,
1908
+ .bn-login-panel select,
1909
+ .bn-login-panel [contenteditable="true"],
1910
+ .bn-login-panel [data-testid="textbox"],
1911
+ .bn-login-panel [data-testid="number-input"],
1912
+ .bn-login-panel [data-testid="dropdown"] {
1913
+ background: #ffffff !important;
1914
+ color: var(--bn-text) !important;
1915
+ color-scheme: light !important;
1916
+ opacity: 1 !important;
1917
+ -webkit-text-fill-color: var(--bn-text) !important;
1918
+ }
1919
+
1920
+ .bn-login-panel h1,
1921
+ .bn-login-panel h2,
1922
+ .bn-login-panel h3,
1923
+ .bn-login-panel p,
1924
+ .bn-login-panel label,
1925
+ .bn-login-panel span,
1926
+ .bn-login-panel .label,
1927
+ .bn-login-panel .prose,
1928
+ .bn-login-panel .markdown {
1929
+ color: var(--bn-text) !important;
1930
+ opacity: 1 !important;
1931
+ -webkit-text-fill-color: var(--bn-text) !important;
1932
+ }
1933
+
1934
+ .bn-login-panel textarea::placeholder,
1935
+ .bn-login-panel input::placeholder {
1936
+ color: #98a2b3 !important;
1937
+ opacity: 1 !important;
1938
+ -webkit-text-fill-color: #98a2b3 !important;
1939
+ }
1940
+
1941
+ .bn-sidebar-panel .block,
1942
+ .bn-sidebar-panel .form,
1943
+ .bn-sidebar-panel .styler,
1944
+ .bn-sidebar-panel .wrap,
1945
+ .bn-sidebar-panel .contain,
1946
+ .bn-sidebar-panel .input-container,
1947
+ .bn-sidebar-panel .wrap-inner,
1948
+ .bn-sidebar-panel .secondary-wrap,
1949
+ .bn-sidebar-panel label,
1950
+ .bn-sidebar-panel textarea,
1951
+ .bn-sidebar-panel input,
1952
+ .bn-sidebar-panel select,
1953
+ .bn-sidebar-panel [contenteditable="true"],
1954
+ .bn-sidebar-panel [data-testid="textbox"],
1955
+ .bn-sidebar-panel [data-testid="dropdown"],
1956
+ .bn-sidebar-panel [data-testid="number-input"],
1957
+ .bn-media-panel .gradio-dropdown,
1958
+ .bn-media-panel .gradio-dropdown .wrap,
1959
+ .bn-media-panel .gradio-dropdown .wrap-inner,
1960
+ .bn-media-panel .gradio-dropdown .input-container,
1961
+ .bn-media-panel .gradio-dropdown input,
1962
+ .bn-media-panel .gradio-dropdown [data-testid="dropdown"],
1963
+ .bn-media-panel .gradio-dropdown [data-testid="textbox"] {
1964
+ background: #ffffff !important;
1965
+ color: var(--bn-text) !important;
1966
+ color-scheme: light !important;
1967
+ opacity: 1 !important;
1968
+ -webkit-text-fill-color: var(--bn-text) !important;
1969
+ }
1970
+
1971
+ .bn-media-panel .block,
1972
+ .bn-media-panel .form,
1973
+ .bn-media-panel .styler,
1974
+ .bn-media-panel .wrap,
1975
+ .bn-media-panel .contain,
1976
+ .bn-media-panel .input-container,
1977
+ .bn-media-panel .wrap-inner,
1978
+ .bn-media-panel .secondary-wrap,
1979
+ .bn-media-panel .label-wrap,
1980
+ .bn-media-panel .label-wrap *,
1981
+ .bn-media-panel [data-testid="block-info"],
1982
+ .bn-media-panel [data-testid="block-info"] *,
1983
+ .bn-media-panel label,
1984
+ .bn-media-panel textarea,
1985
+ .bn-media-panel input,
1986
+ .bn-media-panel select,
1987
+ .bn-media-panel [contenteditable="true"] {
1988
+ background: #ffffff !important;
1989
+ color: var(--bn-text) !important;
1990
+ color-scheme: light !important;
1991
+ opacity: 1 !important;
1992
+ -webkit-text-fill-color: var(--bn-text) !important;
1993
+ }
1994
+
1995
+ .bn-sidebar-panel textarea::placeholder,
1996
+ .bn-sidebar-panel input::placeholder,
1997
+ .bn-media-panel .gradio-dropdown input::placeholder {
1998
+ color: #98a2b3 !important;
1999
+ opacity: 1 !important;
2000
+ -webkit-text-fill-color: #98a2b3 !important;
2001
+ }
2002
+
2003
+ .bn-sidebar-panel .options,
2004
+ .bn-sidebar-panel .options ul,
2005
+ .bn-sidebar-panel [role="listbox"],
2006
+ .bn-sidebar-panel li[data-testid="dropdown-option"],
2007
+ .bn-media-panel .gradio-dropdown .options,
2008
+ .bn-media-panel .gradio-dropdown .options ul,
2009
+ .bn-media-panel .gradio-dropdown [role="listbox"],
2010
+ .bn-media-panel .gradio-dropdown li[data-testid="dropdown-option"] {
2011
+ background: #ffffff !important;
2012
+ color: var(--bn-text) !important;
2013
+ color-scheme: light !important;
2014
+ opacity: 1 !important;
2015
+ -webkit-text-fill-color: var(--bn-text) !important;
2016
+ }
2017
+
2018
+ .bn-media-panel .gradio-image,
2019
+ .bn-media-panel .gradio-audio,
2020
+ .bn-media-panel .gradio-checkbox,
2021
+ .bn-media-panel .gradio-image > *,
2022
+ .bn-media-panel .gradio-audio > *,
2023
+ .bn-media-panel .gradio-checkbox > *,
2024
+ .bn-media-panel .gradio-image .wrap,
2025
+ .bn-media-panel .gradio-audio .wrap,
2026
+ .bn-media-panel .gradio-checkbox .wrap,
2027
+ .bn-media-panel .gradio-image .container,
2028
+ .bn-media-panel .gradio-audio .container,
2029
+ .bn-media-panel .gradio-image .image-container,
2030
+ .bn-media-panel .gradio-audio .audio-container,
2031
+ .bn-media-panel .gradio-image .empty,
2032
+ .bn-media-panel .gradio-audio .empty,
2033
+ .bn-media-panel .gradio-image .icon-wrap,
2034
+ .bn-media-panel .gradio-audio .icon-wrap,
2035
+ .bn-media-panel .gradio-image .icon,
2036
+ .bn-media-panel .gradio-audio .icon,
2037
+ .bn-media-panel .gradio-image [data-testid="image"],
2038
+ .bn-media-panel .gradio-audio [data-testid="audio"],
2039
+ .bn-media-panel .gradio-image [data-testid="image"] *,
2040
+ .bn-media-panel .gradio-audio [data-testid="audio"] * {
2041
+ background: #ffffff !important;
2042
+ color: var(--bn-text) !important;
2043
+ color-scheme: light !important;
2044
+ opacity: 1 !important;
2045
+ -webkit-text-fill-color: var(--bn-text) !important;
2046
+ border-color: var(--bn-border) !important;
2047
+ }
2048
+
2049
+ .bn-media-panel .gradio-image iframe,
2050
+ .bn-media-panel .gradio-audio iframe {
2051
+ background: #ffffff !important;
2052
+ color-scheme: light !important;
2053
+ }
2054
+
2055
+ .bn-media-panel .empty,
2056
+ .bn-media-panel .unpadded_box,
2057
+ .bn-media-panel .padded_box,
2058
+ .bn-media-panel .audio-container,
2059
+ .bn-media-panel .image-container {
2060
+ border-color: var(--bn-border) !important;
2061
+ box-shadow: none !important;
2062
+ }
2063
+
2064
+ .bn-media-panel .gradio-image svg,
2065
+ .bn-media-panel .gradio-audio svg {
2066
+ color: #667085 !important;
2067
+ fill: currentColor !important;
2068
+ stroke: currentColor !important;
2069
+ opacity: 1 !important;
2070
+ }
2071
+
2072
+ .bn-media-panel .gradio-checkbox label,
2073
+ .bn-media-panel .gradio-checkbox span,
2074
+ .bn-media-panel .gradio-checkbox p {
2075
+ color: var(--bn-text) !important;
2076
+ opacity: 1 !important;
2077
+ -webkit-text-fill-color: var(--bn-text) !important;
2078
+ }
2079
+
2080
+ .bn-media-panel .gradio-checkbox input[type="checkbox"] {
2081
+ accent-color: #f97316 !important;
2082
+ background: #ffffff !important;
2083
+ }
2084
+
2085
+ #bn-species-filter .options,
2086
+ #bn-species-filter .options ul,
2087
+ #bn-species-filter [role="listbox"] {
2088
+ background: #ffffff !important;
2089
+ color: var(--bn-text) !important;
2090
+ }
2091
+
2092
+ #bn-species-filter li[data-testid="dropdown-option"].bn-species-option-unvalidated,
2093
+ #bn-species-filter li[data-testid="dropdown-option"][data-species-status="unvalidated"] {
2094
+ background: #f8fafc !important;
2095
+ color: #243348 !important;
2096
+ -webkit-text-fill-color: #243348 !important;
2097
+ }
2098
+
2099
+ #bn-species-filter li[data-testid="dropdown-option"].bn-species-option-partial,
2100
+ #bn-species-filter li[data-testid="dropdown-option"][data-species-status="partial"] {
2101
+ background: #fff7ed !important;
2102
+ color: #7c2d12 !important;
2103
+ -webkit-text-fill-color: #7c2d12 !important;
2104
+ }
2105
+
2106
+ #bn-species-filter li[data-testid="dropdown-option"].bn-species-option-complete,
2107
+ #bn-species-filter li[data-testid="dropdown-option"][data-species-status="complete"] {
2108
+ background: #ecfdf3 !important;
2109
+ color: #14532d !important;
2110
+ -webkit-text-fill-color: #14532d !important;
2111
+ }
2112
+
2113
  }
2114
 
2115
  @media (max-width: 560px) {