arpm01 commited on
Commit
fc7c04c
·
1 Parent(s): 8142bba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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",