Andrea Greco commited on
Commit
d05769c
β€’
2 Parent(s): 23c0e5b 5f7d736

Merge branch 'main' of https://github.com/endriu2795/hugging-face-demo

Browse files
Files changed (2) hide show
  1. .github/workflows/main.yml +23 -0
  2. README.md +12 -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://endriu27:$HF@huggingface.co/spaces/endriu27/huggingface-demo
20
+ - name: Push to hub
21
+ env:
22
+ HF: ${{ secrets.HF }}
23
+ run: git push --force https://endriu27:$HF@huggingface.co/spaces/endriu27/huggingface-demo main
README.md CHANGED
@@ -1,2 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  # hugging-face-demo
2
  Demo of simple HF model
 
1
+ ---
2
+ title: Demo summarization
3
+ emoji: πŸ‘€
4
+ colorFrom: red
5
+ colorTo: red
6
+ sdk: gradio
7
+ sdk_version: 4.29.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ ---
12
+
13
  # hugging-face-demo
14
  Demo of simple HF model