Spaces:
Running
Running
Merge pull request #1 from StateLibraryVictoria/updated-doco
Browse files
.github/workflows/deploy-to-hf-dev.yml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to dev Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches-ignore:
|
5 |
+
- 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 hub
|
19 |
+
env:
|
20 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
21 |
+
run: git push https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/sotirios-slv/theatre-programmer-dev main
|
22 |
+
|
.github/workflows/deploy-to-hf-prod.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
name: Sync to
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
|
|
1 |
+
name: Sync to production Hugging Face hub
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
title: Theatre Programmer
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.7.1
|
@@ -17,7 +17,12 @@ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-
|
|
17 |
Uses Tesseract to perform OCR on any image supplied as an input. The text identified in the image is then through a Flair Named Entity Recognition (NER) model, the output of which is returned to the page.
|
18 |
|
19 |
This is a prototype produced for a project at the State Library Victoria in Melbourne, Australia.
|
20 |
-
|
21 |
## Repository management
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
title: Theatre Programmer
|
3 |
+
emoji: π
|
4 |
+
colorFrom: blue
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.7.1
|
|
|
17 |
Uses Tesseract to perform OCR on any image supplied as an input. The text identified in the image is then through a Flair Named Entity Recognition (NER) model, the output of which is returned to the page.
|
18 |
|
19 |
This is a prototype produced for a project at the State Library Victoria in Melbourne, Australia.
|
20 |
+
|
21 |
## Repository management
|
22 |
|
23 |
+
Hugging Face is used to host two version of the demo app:
|
24 |
+
|
25 |
+
1. the production version that is linked to the `main` branch of the GitHub repo
|
26 |
+
2. a development version which is linked to the most recent branch pushed to GitHub that is **not** `main`
|
27 |
+
|
28 |
+
Deployment to Hugging Face is done via GitHub actions.
|