Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ extractor = AutoFeatureExtractor.from_pretrained("nickmuchi/segformer-b4-finetun
|
|
7 |
model = SegformerForSemanticSegmentation.from_pretrained("nickmuchi/segformer-b4-finetuned-segments-sidewalk")
|
8 |
|
9 |
pipe = pipeline(task="feature-extraction",
|
10 |
-
model=model
|
|
|
11 |
|
12 |
gr.Interface.load(pipe,
|
13 |
title="Segformer",
|
|
|
7 |
model = SegformerForSemanticSegmentation.from_pretrained("nickmuchi/segformer-b4-finetuned-segments-sidewalk")
|
8 |
|
9 |
pipe = pipeline(task="feature-extraction",
|
10 |
+
model=model,
|
11 |
+
extractor=extractor)
|
12 |
|
13 |
gr.Interface.load(pipe,
|
14 |
title="Segformer",
|