Spaces:
Sleeping
Sleeping
Gintarė Zokaitytė Claude Sonnet 4.5 commited on
Commit ·
72b638a
1
Parent(s): 24b80f5
Add GitHub Actions workflow for HF Spaces sync
Browse files- Auto-sync to nus-project/annotation-dashboard on push to main
- Add file size checker for PR validation
- Add HF Spaces README with metadata
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- .github/workflows/check-file-size.yml +17 -0
- .github/workflows/sync-to-hf.yml +21 -0
- README_HF.md +36 -0
.github/workflows/check-file-size.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Check file size
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
pull_request:
|
| 5 |
+
branches: [main]
|
| 6 |
+
|
| 7 |
+
# to run this workflow manually from the Actions tab
|
| 8 |
+
workflow_dispatch:
|
| 9 |
+
|
| 10 |
+
jobs:
|
| 11 |
+
check-size:
|
| 12 |
+
runs-on: ubuntu-latest
|
| 13 |
+
steps:
|
| 14 |
+
- name: Check large files
|
| 15 |
+
uses: ActionsDesk/lfs-warning@v2.0
|
| 16 |
+
with:
|
| 17 |
+
filesizelimit: 10485760 # 10MB limit for HF Spaces
|
.github/workflows/sync-to-hf.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face Spaces
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches: [main]
|
| 6 |
+
|
| 7 |
+
# to run this workflow manually from the Actions tab
|
| 8 |
+
workflow_dispatch:
|
| 9 |
+
|
| 10 |
+
jobs:
|
| 11 |
+
sync-to-hub:
|
| 12 |
+
runs-on: ubuntu-latest
|
| 13 |
+
steps:
|
| 14 |
+
- uses: actions/checkout@v3
|
| 15 |
+
with:
|
| 16 |
+
fetch-depth: 0
|
| 17 |
+
lfs: true
|
| 18 |
+
- name: Push to Hugging Face Space
|
| 19 |
+
env:
|
| 20 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 21 |
+
run: git push https://nus-project:$HF_TOKEN@huggingface.co/spaces/nus-project/annotation-dashboard main --force
|
README_HF.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Annotation Progress Dashboard
|
| 3 |
+
emoji: 📊
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: "1.32.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Annotation Progress Dashboard
|
| 13 |
+
|
| 14 |
+
Live dashboard for tracking Lithuanian NER annotation progress.
|
| 15 |
+
|
| 16 |
+
## Configuration
|
| 17 |
+
|
| 18 |
+
This Space requires the following secrets to be set:
|
| 19 |
+
|
| 20 |
+
1. Go to Settings → Variables and secrets
|
| 21 |
+
2. Add the following secrets:
|
| 22 |
+
- `LABEL_STUDIO_URL` = Your Label Studio instance URL
|
| 23 |
+
- `LABEL_STUDIO_API_KEY` = Your Label Studio API token
|
| 24 |
+
|
| 25 |
+
## Features
|
| 26 |
+
|
| 27 |
+
- Real-time progress metrics
|
| 28 |
+
- Weekly team statistics
|
| 29 |
+
- Category breakdown (mokslinis/ziniasklaida)
|
| 30 |
+
- Completion projection based on recent pace
|
| 31 |
+
- Auto-refresh every 5 minutes
|
| 32 |
+
- Fast loading with smart caching
|
| 33 |
+
|
| 34 |
+
## About
|
| 35 |
+
|
| 36 |
+
This dashboard tracks annotation progress for Lithuanian NER (Named Entity Recognition) project. It connects to Label Studio API to fetch real-time statistics and visualize team performance.
|