Bijay13 commited on
Commit
38c90a0
·
1 Parent(s): 0cf7776

setting up github action to push the deployment to hugging face

Browse files
.github/workflows/sync-to-huggingface.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deploy to Hugging Face Spaces
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+
18
+ - name: Push to Hugging Face Space
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: |
22
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
23
+ git config --global user.name "github-actions[bot]"
24
+ git remote add hf https://huggingface.co/spaces/${{ secrets.HF_SPACE_NAME }}
25
+ git push https://oauth2:$HF_TOKEN@huggingface.co/spaces/${{ secrets.HF_SPACE_NAME }} main:main --force
README.md CHANGED
@@ -89,10 +89,4 @@ After uploading a PDF, you can ask questions like:
89
  - "What does the document say about [specific topic]?"
90
  - "Can you explain [concept] from the document?"
91
 
92
- ## License
93
 
94
- MIT License
95
-
96
- ## Contributing
97
-
98
- Contributions are welcome! Please feel free to submit a Pull Request.
 
89
  - "What does the document say about [specific topic]?"
90
  - "Can you explain [concept] from the document?"
91
 
 
92