Wootang01 commited on
Commit
cbc3a01
·
1 Parent(s): 3d16b2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,8 @@ from torch import nn
4
  from pathlib import Path
5
 
6
  LABELS = Path('class_names.txt').read_text().splitlines()
 
 
7
 
8
  model = nn.Sequential(
9
  nn.Conv2d(1, 32, 3, padding='same'),
@@ -36,4 +38,6 @@ def predict(img):
36
  gr.Interface(fn=predict,
37
  inputs="sketchpad",
38
  outputs="label",
 
 
39
  live=True).launch(debug=True)
 
4
  from pathlib import Path
5
 
6
  LABELS = Path('class_names.txt').read_text().splitlines()
7
+ title = "Sketch Classifier"
8
+ description = "This machine has vision. To test the machine, if you sketch something below, the machine will attempt to classify your sketch. It can guess from 100 objects and it will present to you its top three guesses. Beside each guess, the length of the bar indicates the confidence with which the machine has identified your sketch. The longer the bar, the more confident the machine is."
9
 
10
  model = nn.Sequential(
11
  nn.Conv2d(1, 32, 3, padding='same'),
 
38
  gr.Interface(fn=predict,
39
  inputs="sketchpad",
40
  outputs="label",
41
+ title=title,
42
+ description=description,
43
  live=True).launch(debug=True)