kurianbenoy commited on
Commit
8feb7e3
·
1 Parent(s): 4d74948

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -5,6 +5,7 @@ repo_id = "hugginglearners/flowers_101_convnext_model"
5
 
6
  learn = from_pretrained_fastai(repo_id)
7
  labels = learn.dls.vocab
 
8
 
9
 
10
  def predict(img):
@@ -20,6 +21,7 @@ interface_options = {
20
  "interpretation": "default",
21
  "layout": "horizontal",
22
  "allow_flagging": "never",
 
23
  }
24
 
25
  demo = gr.Interface(
 
5
 
6
  learn = from_pretrained_fastai(repo_id)
7
  labels = learn.dls.vocab
8
+ EXAMPLES_PATH = Path('./examples')
9
 
10
 
11
  def predict(img):
 
21
  "interpretation": "default",
22
  "layout": "horizontal",
23
  "allow_flagging": "never",
24
+ "examples": [f'{EXAMPLES_PATH}/{f.name}' for f in EXAMPLES_PATH.iterdir()],
25
  }
26
 
27
  demo = gr.Interface(