mindwrapped commited on
Commit
a4d339b
·
1 Parent(s): f3e311e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -9,13 +9,26 @@ def check_card(image):
9
  scores = scores.detach().numpy()
10
  return {'real': float(scores[1]), 'fake': float(scores[0])}
11
 
 
12
  demo = gr.Interface(
13
  fn=check_card,
14
  inputs="image",
15
  outputs="label",
16
  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'],
17
  title='Pokemon Card Checker',
18
- description='A resnet34 model fine-tuned to determine whether Pokemon cards are real or fake. Dataset is located [here](https://www.kaggle.com/datasets/ongshujian/real-and-fake-pokemon-cards).',
 
 
 
 
 
 
 
 
 
 
 
 
19
  )
20
 
21
  demo.launch()
 
9
  scores = scores.detach().numpy()
10
  return {'real': float(scores[1]), 'fake': float(scores[0])}
11
 
12
+
13
  demo = gr.Interface(
14
  fn=check_card,
15
  inputs="image",
16
  outputs="label",
17
  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'],
18
  title='Pokemon Card Checker',
19
+ description='A resnet34 model fine-tuned to determine whether Pokemon cards are real or fake. Check out the dataset [here](https://www.kaggle.com/datasets/ongshujian/real-and-fake-pokemon-cards).',
20
+ article=("""
21
+ Can you guess which cards are real and fake?
22
+
23
+ I can't. :D
24
+
25
+ <details>
26
+ <summary>Card Labels</summary>
27
+ R = Real
28
+ F = Fake
29
+ R,R,F,F,R,R,F,F
30
+ </details>
31
+ """),
32
  )
33
 
34
  demo.launch()