Ammar971 commited on
Commit
fc8666d
·
1 Parent(s): 49da6b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -35,6 +35,11 @@ def predict_image(img):
35
  pred=np.argmax(prediction)
36
  return pred
37
 
38
- iface = gr.Interface(predict_image, inputs="sketchpad", outputs="label")
 
 
 
 
 
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')