Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
•
b6eacdf
1
Parent(s):
bb67d5e
Added github action to deploy to Hugging Face
Browse files- .github/workflows/deploy-to-hf-prod.yml +20 -0
- README.md +4 -0
.github/workflows/deploy-to-hf-prod.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to produciton Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
lfs: true
|
17 |
+
- name: Push to hub
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: git push https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/sotirios-slv/theatre-programmer main
|
README.md
CHANGED
@@ -17,3 +17,7 @@ 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.
|
|
|
|
|
|
|
|
|
|
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 |
+
Although Hugging Face is used to host the interactive demo of this app, GitHub is used to -->
|