Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import gradio as gr
|
|
2 |
from fastai.vision.all import *
|
3 |
from huggingface_hub import from_pretrained_fastai
|
4 |
|
|
|
|
|
5 |
repo_id = "hugginglearners/kvasir-seg"
|
6 |
learn = from_pretrained_fastai(repo_id)
|
7 |
#labels = learn.dls.vocab
|
|
|
2 |
from fastai.vision.all import *
|
3 |
from huggingface_hub import from_pretrained_fastai
|
4 |
|
5 |
+
def label_func(fn): return path/'masks1b-binary'/f'{fn.stem}.png'
|
6 |
+
|
7 |
repo_id = "hugginglearners/kvasir-seg"
|
8 |
learn = from_pretrained_fastai(repo_id)
|
9 |
#labels = learn.dls.vocab
|