Spaces:
Runtime error
Runtime error
Ritam911
commited on
Commit
•
1d1dda3
1
Parent(s):
2a07bad
added description
Browse files
app.py
CHANGED
@@ -12,6 +12,8 @@ def pre(image):
|
|
12 |
p,_,d= learn.get_preds(dl=t,with_decoded=True)
|
13 |
return p.argmax().item()
|
14 |
|
|
|
|
|
15 |
|
16 |
-
iface = gr.Interface(fn=pre, inputs="sketchpad", outputs="text")
|
17 |
iface.launch()
|
|
|
12 |
p,_,d= learn.get_preds(dl=t,with_decoded=True)
|
13 |
return p.argmax().item()
|
14 |
|
15 |
+
title = "Hand written Digit Classifier"
|
16 |
+
description = " A Basic CNN trained on MNSIT Dataset using Pytorch and Fast.ai. It achieved an accuracy of 99.2 %.<br> This is my first app so i could not properly convert the image from the sketchpad to a proper 28*28 pixel image as in MNSIT database. Hence, please try to drwa the digits big and in center for best accuracy. "
|
17 |
|
18 |
+
iface = gr.Interface(fn=pre, inputs="sketchpad", outputs="text",title=title,description=description)
|
19 |
iface.launch()
|