selld commited on
Commit
279729c
1 Parent(s): 81c1ccf

That worked. Revert and try another fix

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -18,20 +18,18 @@ description = (
18
  "A luxury bag classifier trained on photos of a few brands. Created with resnet18 architecture."
19
  )
20
  article = "<p style='text-align: center'><a href='https://www.kaggle.com/code/sellde/fastai-chapter-2' target='_blank'>Model Source</a></p>"
21
- examples = ["gucci.jpg", "chanel.jpg", "vuitton.jpg"]
22
  interpretation = "default"
23
  enable_queue = True
24
 
25
  gr.Interface(
26
  fn=predict,
27
- inputs=gr.inputs.Image(shape=(192, 192)),
28
  outputs=gr.outputs.Label(),
29
  title=title,
30
  description=description,
31
  article=article,
32
  examples=examples,
33
- #interpretation=interpretation,
34
  enable_queue=enable_queue,
35
- #thumbnail=???
36
- cache_examples=True,
37
  ).launch()
 
18
  "A luxury bag classifier trained on photos of a few brands. Created with resnet18 architecture."
19
  )
20
  article = "<p style='text-align: center'><a href='https://www.kaggle.com/code/sellde/fastai-chapter-2' target='_blank'>Model Source</a></p>"
21
+ examples = [["gucci.jpg"], ["chanel.jpg"], ["vuitton.jpg"]]
22
  interpretation = "default"
23
  enable_queue = True
24
 
25
  gr.Interface(
26
  fn=predict,
27
+ inputs=gr.inputs.Image(shape=(512, 512)),
28
  outputs=gr.outputs.Label(),
29
  title=title,
30
  description=description,
31
  article=article,
32
  examples=examples,
33
+ interpretation=interpretation,
34
  enable_queue=enable_queue,
 
 
35
  ).launch()