bhaveshgoel07 commited on
Commit
638b7f1
·
1 Parent(s): 5e2cf02

Fixed errors

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def predict(image):
47
  # Create the Gradio interface
48
  interface = gr.Interface(
49
  fn=predict,
50
- inputs=gr.Image(type="pil", image_mode='L', source='canvas'),
51
  outputs=gr.outputs.Label(num_top_classes=10)
52
  )
53
 
 
47
  # Create the Gradio interface
48
  interface = gr.Interface(
49
  fn=predict,
50
+ inputs=gr.Sketchpad(shape=(28, 28), brush_radius=1),
51
  outputs=gr.outputs.Label(num_top_classes=10)
52
  )
53