shriarul5273 commited on
Commit
e8d568b
·
1 Parent(s): 0eab673

added github actions

Browse files
Files changed (2) hide show
  1. .github/huggingface.yml +25 -0
  2. requirements.txt +1 -1
.github/huggingface.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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. }}
19
+ HFUSER: ${{secrets.HF_USERNAME }}
20
+ run: git remote add space https://$HFUSER:[email protected]/spaces/$HFUSER/Image_Processing_OpenCV
21
+ - name: Push to hub
22
+ env:
23
+ HF: ${{ secrets.HF_TOKEN}}
24
+ HFUSER: ${{secrets.HF_USERNAME }}
25
+ run: git push --force https://$HFUSER:[email protected]/spaces/$HFUSER/Image_Processing_OpenCV main
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  opencv-python
2
  numpy
3
- PIL
4
  scikit-image
5
  gradio
 
1
  opencv-python
2
  numpy
3
+ pillow
4
  scikit-image
5
  gradio