Pierre Chapuis commited on
Commit
61c4dce
·
unverified ·
1 Parent(s): 8d591e7
Files changed (4) hide show
  1. app.py +1 -1
  2. pyproject.toml +3 -1
  3. requirements.txt +2 -2
  4. uv.lock +0 -0
app.py CHANGED
@@ -39,7 +39,7 @@ DTYPE = torch.bfloat16 if torch.cuda.is_bf16_supported() else torch.float32
39
  path = "finegrain/merged-turbo-light-switcher"
40
  model = light_switcher_lite.Model.from_pretrained(path, device=DEVICE_CPU, dtype=DTYPE)
41
 
42
- model.to(DEVICE)
43
 
44
 
45
  @spaces.GPU
 
39
  path = "finegrain/merged-turbo-light-switcher"
40
  model = light_switcher_lite.Model.from_pretrained(path, device=DEVICE_CPU, dtype=DTYPE)
41
 
42
+ model = model.to(DEVICE)
43
 
44
 
45
  @spaces.GPU
pyproject.toml CHANGED
@@ -8,13 +8,15 @@ authors = [
8
  dependencies = [
9
  "gradio>=5.27.1",
10
  "pillow>=11.3.0",
11
- "refiners @ git+https://github.com/finegrain-ai/refiners",
12
  "spaces>=0.29.3",
13
  "numpy<2.0.0",
14
  "pi-heif>=1.1.0",
15
  "diffusers>=0.35.1",
16
  "accelerate>=1.10.1",
 
17
  ]
 
 
18
 
19
  [tool.ruff]
20
  line-length = 120
 
8
  dependencies = [
9
  "gradio>=5.27.1",
10
  "pillow>=11.3.0",
 
11
  "spaces>=0.29.3",
12
  "numpy<2.0.0",
13
  "pi-heif>=1.1.0",
14
  "diffusers>=0.35.1",
15
  "accelerate>=1.10.1",
16
+ "finegrain_toolbox @ git+https://github.com/finegrain-ai/finegrain-toolbox",
17
  ]
18
+ # ZeroGPU is stuck with 3.10
19
+ requires-python = ">= 3.10"
20
 
21
  [tool.ruff]
22
  line-length = 120
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  spaces>=0.35.0
2
- git+https://github.com/huggingface/diffusers@97abdd2210a540c2e71aee63c80a22723031cd57
3
- git+https://github.com/finegrain-ai/refiners@cfe8b66ba4f8a906583850ac25e9e89cb83a44b9
4
  numpy<2.0.0
5
  pillow>=11.3.0
6
  pi_heif>=1.1.0
 
1
  spaces>=0.35.0
2
+ diffusers>=0.35.0
3
+ git+https://github.com/finegrain-ai/finegrain-toolbox@906e408c3c0e4e30b307fe9290b10d73e5b81c97
4
  numpy<2.0.0
5
  pillow>=11.3.0
6
  pi_heif>=1.1.0
uv.lock CHANGED
The diff for this file is too large to render. See raw diff