gexinh commited on
Commit
f019559
·
verified ·
1 Parent(s): 9d48b61

Install standalone dependencies before Space source copy

Browse files
Files changed (2) hide show
  1. docs/HOSTING.md +6 -2
  2. requirements.txt +10 -1
docs/HOSTING.md CHANGED
@@ -36,7 +36,10 @@ python scripts/stage_space.py --out-dir build/hf-space
36
  The staging command packages the code and demo assets, using
37
  `hf_space/README.md` as the Space card and `hf_space/requirements.txt` as its
38
  root requirements file. The repository's main README and requirements stay
39
- unchanged. Upload that directory to the intended Space:
 
 
 
40
 
41
  ```bash
42
  hf upload gexinh/SlideBank build/hf-space --repo-type space
@@ -48,7 +51,8 @@ platform's `SPACES_ZERO_GPU` flag and the Spaces SDK; it keeps QA disabled on
48
  `cpu-basic` even though the GPU decorator alone would be a no-op there.
49
 
50
  The Space uses Python 3.10, Gradio 5.34.2, PyTorch 2.8.0, and Transformers
51
- 4.51.3. The `hosted` package extra pins the matching runtime dependencies.
 
52
  Quilt-LLaVA's external legacy runtime is not needed by this hosted model.
53
 
54
  ## Model preparation and GPU execution
 
36
  The staging command packages the code and demo assets, using
37
  `hf_space/README.md` as the Space card and `hf_space/requirements.txt` as its
38
  root requirements file. The repository's main README and requirements stay
39
+ unchanged. The Space requirements list dependencies directly because the
40
+ Gradio builder installs them before copying application source; the app imports
41
+ the bundled Python package from its working directory. Upload the staged
42
+ directory to the intended Space:
43
 
44
  ```bash
45
  hf upload gexinh/SlideBank build/hf-space --repo-type space
 
51
  `cpu-basic` even though the GPU decorator alone would be a no-op there.
52
 
53
  The Space uses Python 3.10, Gradio 5.34.2, PyTorch 2.8.0, and Transformers
54
+ 4.51.3. The standalone Space requirements and the `hosted` package extra declare
55
+ the same model/runtime dependencies.
56
  Quilt-LLaVA's external legacy runtime is not needed by this hosted model.
57
 
58
  ## Model preparation and GPU execution
requirements.txt CHANGED
@@ -1 +1,10 @@
1
- -e .[hosted]
 
 
 
 
 
 
 
 
 
 
1
+ numpy>=1.24,<3
2
+ Pillow>=10,<12
3
+ PyYAML>=6,<7
4
+ gradio==5.34.2
5
+ spaces==0.51.3
6
+ torch==2.8.0
7
+ torchvision==0.23.0
8
+ transformers==4.51.3
9
+ accelerate>=1,<2
10
+ sentencepiece>=0.2,<1