Vatsal Gupta commited on
Commit
f4afa2a
·
unverified ·
2 Parent(s): 13d89a19cd26e2

Merge pull request #4 from gvatsal60/fix/hugging_VG

Browse files
Files changed (2) hide show
  1. .github/workflows/huggingface.yaml +9 -3
  2. Dockerfile +1 -1
.github/workflows/huggingface.yaml CHANGED
@@ -9,15 +9,21 @@ jobs:
9
  sync-to-hub:
10
  runs-on: ubuntu-latest
11
  steps:
12
- - uses: actions/checkout@v5
 
13
  with:
14
  fetch-depth: 0
15
  lfs: true
16
- - name: Push to hub
 
 
 
 
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
  HF_USERNAME: ${{ github.repository_owner }}
20
  HF_SPACE: ${{ github.repository }}
21
  HF_BRANCH: main
22
  run: |
23
- git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_SPACE master:$HF_BRANCH
 
 
9
  sync-to-hub:
10
  runs-on: ubuntu-latest
11
  steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v5
14
  with:
15
  fetch-depth: 0
16
  lfs: true
17
+ - name: Configure Git
18
+ run: |
19
+ git config --global user.email "action@github.com"
20
+ git config --global user.name "${{ github.actor }}"
21
+ - name: Push to Hugging Face Hub
22
  env:
23
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
24
  HF_USERNAME: ${{ github.repository_owner }}
25
  HF_SPACE: ${{ github.repository }}
26
  HF_BRANCH: main
27
  run: |
28
+ git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_SPACE
29
+ git push hf master:$HF_BRANCH
Dockerfile CHANGED
@@ -58,4 +58,4 @@ EXPOSE 8501
58
  # ##########################################################################
59
  # Command to Run
60
  # ##########################################################################
61
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--browser.gatherUsageStats=false"]
 
58
  # ##########################################################################
59
  # Command to Run
60
  # ##########################################################################
61
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--browser.gatherUsageStats=false"]