Spaces:
Build error
Build error
Asis commited on
Commit ·
067eb84
1
Parent(s): ed9f87c
Rename labels
Browse files5 unmodified lines6789101112135 unmodified lineslabels = learn.dls.vocablabels = list(map(lambda x: x.replace('food recipe', 'Food Plate'), labels))labels = list(map(lambda x: x.replace('empty plate', 'Empty Plate'), labels))def predict(img):img = PILImage.create(img)5 unmodified lines6789101112135 unmodified lineslabels = learn.dls.vocablabels = list(map(lambda x: x.replace('food recipe', 'Plate with food'), labels))labels = list(map(lambda x: x.replace('empty plate', 'Empty plate'), labels))def predict(img):img = PILImage.create(img)
app.py+2-2