John Ho commited on
Commit
7c9eabe
·
1 Parent(s): a22bc8d

testing HF Space build with new transformers referece

Browse files
.github/workflows/deploy_to_hf_space.yaml CHANGED
@@ -88,6 +88,6 @@ jobs:
88
  echo "::notice::FORCE_PUSH secret is not set."
89
  git push https://GF-John:$HF_TOKEN@huggingface.co/spaces/GF-John/sam3 main
90
  else
91
- echo "::notice::FORCE_PUSH secret is set. Doing Force Push toHugging Face Space."
92
  git push -f https://GF-John:$HF_TOKEN@huggingface.co/spaces/GF-John/sam3 main
93
  fi
 
88
  echo "::notice::FORCE_PUSH secret is not set."
89
  git push https://GF-John:$HF_TOKEN@huggingface.co/spaces/GF-John/sam3 main
90
  else
91
+ echo "::notice::FORCE_PUSH secret is set. Doing Force Push to Hugging Face Space."
92
  git push -f https://GF-John:$HF_TOKEN@huggingface.co/spaces/GF-John/sam3 main
93
  fi
README.md CHANGED
@@ -13,12 +13,15 @@ short_description: short description for your Space App
13
  # SAM3 HuggingFace Space Demo
14
  with inspiration from [prithivMLmods' demo](https://huggingface.co/spaces/prithivMLmods/SAM3-Demo), using the [transformers API](https://huggingface.co/docs/transformers/main/en/model_doc/sam3_video)
15
 
 
 
 
16
  # The HuggingFace Space Template
17
  setup with [github action to update automatically update your space](https://huggingface.co/docs/hub/spaces-github-actions)
18
  and manage dependencies with `uv`
19
 
20
  You will need to update [`deploy_to_hf_space.yaml`](.github/workflows/deploy_to_hf_space.yaml) with the details for your space and
21
- setup your `HF_TOKEN` in your [Github secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-environment)
22
 
23
  > [!WARNING]
24
  > The Githuh Action *Force* push changes to HuggingFace Space
 
13
  # SAM3 HuggingFace Space Demo
14
  with inspiration from [prithivMLmods' demo](https://huggingface.co/spaces/prithivMLmods/SAM3-Demo), using the [transformers API](https://huggingface.co/docs/transformers/main/en/model_doc/sam3_video)
15
 
16
+ # Requirements
17
+ using `git+https://github.com/huggingface/transformers.git` for now since it's not yet available on the latest release of transformers (v4.57.3 at the time of writing)
18
+
19
  # The HuggingFace Space Template
20
  setup with [github action to update automatically update your space](https://huggingface.co/docs/hub/spaces-github-actions)
21
  and manage dependencies with `uv`
22
 
23
  You will need to update [`deploy_to_hf_space.yaml`](.github/workflows/deploy_to_hf_space.yaml) with the details for your space and
24
+ setup your `HF_TOKEN` and `FORCE_PUSH` in your [Github secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-environment)
25
 
26
  > [!WARNING]
27
  > The Githuh Action *Force* push changes to HuggingFace Space
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  torch
2
  torchvision
3
- transformers
4
  accelerate
5
  loguru
6
  opencv-python-headless>=4.11.0.86
 
1
  torch
2
  torchvision
3
+ git+https://github.com/huggingface/transformers.git
4
  accelerate
5
  loguru
6
  opencv-python-headless>=4.11.0.86