zuzu commited on
Commit
9ff6fc2
1 Parent(s): 8ac1e01

fixed example and stopped inverting sketch

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. writer001_pass01_digit2.png +0 -0
app.py CHANGED
@@ -13,7 +13,7 @@ def predict(img):
13
  ymax = np.argmax(ysoft)
14
  return ymax
15
 
16
- sp = gr.Sketchpad(shape=(140,100), image_mode="L", label='arabic numeral').style(height=400, width=400)
17
  gr.Label()
18
  gr.Interface(fn=predict,
19
  inputs=sp,
 
13
  ymax = np.argmax(ysoft)
14
  return ymax
15
 
16
+ sp = gr.Sketchpad(shape=(140,100), image_mode="L", label='arabic numeral',invert_colors=False ).style(height=400, width=400)
17
  gr.Label()
18
  gr.Interface(fn=predict,
19
  inputs=sp,
writer001_pass01_digit2.png CHANGED