fixed the ci workflow problem with HF Auth
Browse files
.github/workflows/main.yml
CHANGED
|
@@ -12,15 +12,20 @@ jobs:
|
|
| 12 |
steps:
|
| 13 |
- uses: actions/checkout@v3
|
| 14 |
with:
|
| 15 |
-
fetch-depth: 0
|
| 16 |
-
lfs: false
|
| 17 |
-
|
| 18 |
-
- name: Ignore large files
|
| 19 |
-
run : git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch "Rag_Documents/layout-parser-paper.pdf"' HEAD
|
| 20 |
|
| 21 |
-
- name:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
env:
|
| 23 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 24 |
-
run:
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
steps:
|
| 13 |
- uses: actions/checkout@v3
|
| 14 |
with:
|
| 15 |
+
fetch-depth: 0 # Required for history rewriting
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
- name: Install git-filter-repo
|
| 18 |
+
run: pip install git-filter-repo
|
| 19 |
+
|
| 20 |
+
- name: Remove large file from history
|
| 21 |
+
run: git filter-repo --path "Rag_Documents/layout-parser-paper.pdf" --invert-paths
|
| 22 |
+
|
| 23 |
+
- name: Log in to Hugging Face Hub
|
| 24 |
env:
|
| 25 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 26 |
+
run: |
|
| 27 |
+
pip install -U "huggingface_hub>=0.20.0"
|
| 28 |
+
huggingface-cli login --token $HF_TOKEN
|
| 29 |
+
|
| 30 |
+
- name: Push to hub
|
| 31 |
+
run: git push --force https://huggingface.co/spaces/bpratik/Chatbot main
|
src/__pycache__/main.cpython-312.pyc
CHANGED
|
Binary files a/src/__pycache__/main.cpython-312.pyc and b/src/__pycache__/main.cpython-312.pyc differ
|
|
|
src/ui/__pycache__/load.cpython-312.pyc
CHANGED
|
Binary files a/src/ui/__pycache__/load.cpython-312.pyc and b/src/ui/__pycache__/load.cpython-312.pyc differ
|
|
|