Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,11 @@ def predict_image(img):
|
|
35 |
pred=np.argmax(prediction)
|
36 |
return pred
|
37 |
|
38 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
iface.launch(debug='True')
|
|
|
35 |
pred=np.argmax(prediction)
|
36 |
return pred
|
37 |
|
38 |
+
iface = gr.Interface(
|
39 |
+
fn= predict_image,
|
40 |
+
inputs= gr.Image(height=28, width=28, image_mode='L', sources='clipboard'),
|
41 |
+
outputs='label'
|
42 |
+
|
43 |
+
)
|
44 |
|
45 |
iface.launch(debug='True')
|