Commit
•
4c985f6
1
Parent(s):
1be7dd2
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import gradio as gr
|
2 |
from tensorflow import keras as k
|
3 |
import numpy as np
|
4 |
|
@@ -12,7 +12,7 @@ def predict(img):
|
|
12 |
return np.argmax(pred)
|
13 |
|
14 |
iface = gr.Interface(predict, inputs = 'sketchpad',
|
15 |
-
outputs = 'text',
|
16 |
allow_flagging = 'never',
|
17 |
description = 'Draw a Digit Below... (Draw in the centre for best results)')
|
18 |
-
iface.launch(share = True, width = 500, height = 500)
|
|
|
1 |
+
import gradio as gr
|
2 |
from tensorflow import keras as k
|
3 |
import numpy as np
|
4 |
|
|
|
12 |
return np.argmax(pred)
|
13 |
|
14 |
iface = gr.Interface(predict, inputs = 'sketchpad',
|
15 |
+
outputs = 'text',
|
16 |
allow_flagging = 'never',
|
17 |
description = 'Draw a Digit Below... (Draw in the centre for best results)')
|
18 |
+
iface.launch(share = True, width = 500, height = 500)
|