File size: 1,571 Bytes
a31ba73
5c07489
a31ba73
 
 
 
 
 
 
5c07489
a31ba73
 
33a6de4
 
 
7c9eabe
 
 
a31ba73
 
 
 
 
7c9eabe
a31ba73
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: SAM3
emoji: 📚
colorFrom: blue
colorTo: yellow
sdk: gradio
sdk_version: 5.32.0
app_file: app.py
pinned: false
short_description: SAM3 Video Inference on ZeroGPU
---

# SAM3 HuggingFace Space Demo
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)

# Requirements
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)

# The HuggingFace Space Template
setup with [github action to update automatically update your space](https://huggingface.co/docs/hub/spaces-github-actions)
and manage dependencies with `uv`

You will need to update [`deploy_to_hf_space.yaml`](.github/workflows/deploy_to_hf_space.yaml) with the details for your space and
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)

> [!WARNING]
> The Githuh Action *Force* push changes to HuggingFace Space
> This is due to the creation of the requirements.txt that happens on the fly.
> This template assumes that you are the sole contributor to your space.

## Resources

* [Gradio Course](https://huggingface.co/learn/llm-course/chapter9/2?fw=pt)
* [Gradio Doc](https://www.gradio.app/guides/quickstart)
* Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference