Rajeev-86 commited on
Commit
2dec6a5
·
1 Parent(s): 90e49ec

fixed model links and added paths parameter to yml file

Browse files
Files changed (2) hide show
  1. .github/workflows/sync_to_hf.yml +9 -4
  2. Dockerfile +2 -2
.github/workflows/sync_to_hf.yml CHANGED
@@ -2,8 +2,13 @@ name: Sync to Hugging Face Hub
2
 
3
  on:
4
  push:
5
- branches: [main] # Trigger on pushes to the main branch
6
- workflow_dispatch: # Allows manual trigger from the Actions tab
 
 
 
 
 
7
 
8
  jobs:
9
  sync-to-hub:
@@ -11,8 +16,8 @@ jobs:
11
  steps:
12
  - uses: actions/checkout@v4
13
  with:
14
- fetch-depth: 0 # Ensure all history is fetched
15
- lfs: true # Needed if you use Git LFS for large files
16
 
17
  - name: Push to Hugging Face Space
18
  env:
 
2
 
3
  on:
4
  push:
5
+ branches: [main]
6
+ paths:
7
+ - 'Dockerfile'
8
+ - 'requirements.txt'
9
+ - 'model-server/**'
10
+ - '.github/workflows/sync_to_hf.yml'
11
+ workflow_dispatch:
12
 
13
  jobs:
14
  sync-to-hub:
 
16
  steps:
17
  - uses: actions/checkout@v4
18
  with:
19
+ fetch-depth: 0
20
+ lfs: true
21
 
22
  - name: Push to Hugging Face Space
23
  env:
Dockerfile CHANGED
@@ -14,8 +14,8 @@ EXPOSE 8080
14
 
15
  # 3. Installing gdown, downloading models and immediately uninstalling it for a smaller image
16
  RUN pip install --no-cache-dir gdown && \
17
- gdown h1vzykr8eH77ypl4R7_AsSb56W9p7LDlKo -O model_store/UNET.mar && \
18
- gdown 1GdQyPrRn8yH5y7F1jC5Yuu2vWNLUs4K2 -O model_store/R-UNET.mar && \
19
  gdown 1mw7VbQt9Lrv0TG2LX0Ke3hKp0kyukElA -O model_store/A-R-UNET.mar && \
20
  pip uninstall gdown -y && \
21
  rm -rf /root/.cache/pip && \
 
14
 
15
  # 3. Installing gdown, downloading models and immediately uninstalling it for a smaller image
16
  RUN pip install --no-cache-dir gdown && \
17
+ gdown 1vzykr8eH77ypl4R7_AsSb56W9p7LDlKo -O model_store/UNET.mar && \
18
+ gdown 1GdQyPrRn8yH5y7F1jC5Yuu2vWNLUs4K -O model_store/R-UNET.mar && \
19
  gdown 1mw7VbQt9Lrv0TG2LX0Ke3hKp0kyukElA -O model_store/A-R-UNET.mar && \
20
  pip uninstall gdown -y && \
21
  rm -rf /root/.cache/pip && \