Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import torch
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
# Load the model
|
| 7 |
-
model = AutoModelForImageSegmentation.from_pretrained("
|
| 8 |
|
| 9 |
# Load the tokenizer (if needed)
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained("path/to/tokenizer")
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
# Load the model
|
| 7 |
+
model = AutoModelForImageSegmentation.from_pretrained("/absolute/path/to/gelan-c-seg.pt")")
|
| 8 |
|
| 9 |
# Load the tokenizer (if needed)
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained("path/to/tokenizer")
|