Spaces:
Runtime error
Runtime error
Disable Spaces hot reload early; upgrade transformers for SAM3
Browse files- app.py +3 -0
- 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
|
| 23 |
typer
|
| 24 |
uvicorn
|
|
|
|
| 19 |
torch
|
| 20 |
torchvision
|
| 21 |
tqdm
|
| 22 |
+
transformers @ git+https://github.com/huggingface/transformers.git
|
| 23 |
typer
|
| 24 |
uvicorn
|