yakvrz commited on
Commit
9ed00aa
·
1 Parent(s): 9299a29

Disable Spaces hot reload early; upgrade transformers for SAM3

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -3,6 +3,9 @@
3
 
4
  import os
5
 
 
 
 
6
  from app.ui import build_ui
7
 
8
 
 
3
 
4
  import os
5
 
6
+ # Disable Gradio Spaces hot reload to avoid version pin errors on Spaces.
7
+ os.environ.setdefault("GRADIO_HOT_RELOAD", "0")
8
+
9
  from app.ui import build_ui
10
 
11
 
requirements.txt CHANGED
@@ -19,6 +19,6 @@ safetensors
19
  torch
20
  torchvision
21
  tqdm
22
- transformers>=4.39
23
  typer
24
  uvicorn
 
19
  torch
20
  torchvision
21
  tqdm
22
+ transformers @ git+https://github.com/huggingface/transformers.git
23
  typer
24
  uvicorn