mindwrapped commited on
Commit
f4d999e
1 Parent(s): c19686c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import from_pretrained_fastai
4
  from lime import lime_image
5
  from skimage.segmentation import mark_boundaries
6
 
7
- learn = from_pretrained_fastai('mindwrapped/pokemon-card-checker')
8
 
9
  def check_card(img):
10
  pred_label, _, scores = learn.predict(img)
@@ -48,7 +48,7 @@ demo = gr.Interface(
48
  examples=['real-1.jpeg','real-2.jpeg','fake-1.jpeg','fake-2.jpeg','real-3.jpeg','real-4.jpeg','fake-3.jpeg','fake-4.jpeg'],
49
  title='Pokemon Card Checker',
50
  description='This space uses a resnet34 model fine-tuned to determine whether Pokemon cards are real or fake. \n\nAdded [LIME](https://github.com/marcotcr/lime) to show what contributed to the predicted label (green shows what contributed towards that label and red shows what contributed against the label predicted).\n\n[Dataset](https://www.kaggle.com/datasets/ongshujian/real-and-fake-pokemon-cards) created by [Shujian Ong](https://www.kaggle.com/ongshujian).',
51
- article='Can you guess which cards are real and fake? \n\nI can\'t 🤔 \n\n([View Labels](https://gist.github.com/mindwrapped/e5aad747757ef006037a1a1982be34fc)) \n\nFeel free to like if you like it. \n\n![visitor badge](https://visitor-badge.glitch.me/badge?page_id=mindwrapped.pokemon-card-checker-space)',
52
  live=False,
53
  )
54
 
 
4
  from lime import lime_image
5
  from skimage.segmentation import mark_boundaries
6
 
7
+ learn = from_pretrained_fastai('hugginglearners/pokemon-card-checker')
8
 
9
  def check_card(img):
10
  pred_label, _, scores = learn.predict(img)
 
48
  examples=['real-1.jpeg','real-2.jpeg','fake-1.jpeg','fake-2.jpeg','real-3.jpeg','real-4.jpeg','fake-3.jpeg','fake-4.jpeg'],
49
  title='Pokemon Card Checker',
50
  description='This space uses a resnet34 model fine-tuned to determine whether Pokemon cards are real or fake. \n\nAdded [LIME](https://github.com/marcotcr/lime) to show what contributed to the predicted label (green shows what contributed towards that label and red shows what contributed against the label predicted).\n\n[Dataset](https://www.kaggle.com/datasets/ongshujian/real-and-fake-pokemon-cards) created by [Shujian Ong](https://www.kaggle.com/ongshujian).',
51
+ article='Can you guess which cards are real and fake? \n\nI can\'t 🤔 \n\n([View Labels](https://gist.github.com/mindwrapped/e5aad747757ef006037a1a1982be34fc)) \n\nSpace and model by Scott Krstyen (mindwrapped) \n\n![visitor badge](https://visitor-badge.glitch.me/badge?page_id=mindwrapped.pokemon-card-checker-space)',
52
  live=False,
53
  )
54