MenaWANG commited on
Commit
b9a08d9
1 Parent(s): 4e2d8ae

initiate app

Browse files
Files changed (4) hide show
  1. .github/workflows/main.yml +23 -0
  2. ReadMe.md +2 -0
  3. app.py +3 -0
  4. requirements.txt +2 -0
.github/workflows/main.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to 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@v2
14
+ with:
15
+ fetch-depth: 0
16
+ - name: Add remote
17
+ env:
18
+ HF: ${{ secrets.HF }}
19
+ run: git remote add space https://menawang:$HF@huggingface.co/spaces/MenaWANG/english-to-latin
20
+ - name: Push to hub
21
+ env:
22
+ HF: ${{ secrets.HF }}
23
+ run: git push --force https://menawang:$HF@huggingface.co/spaces/MenaWANG/english-to-latin main
ReadMe.md ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ This repo utlizes `github actions` to sync changes to huggingface hub. As pull requests merged to the main brach in this repo, changes will then be synced on huggingface hub. The [Gradio App published on huggingface space](https://huggingface.co/spaces/MenaWANG/english-to-latin) will then be updated automatically.
2
+
app.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import gradio as gr
2
+
3
+ gr.load("models/MenaWANG/translator-en-la").launch()
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ transformers
2
+ torch