jineetshah commited on
Commit
ba45dcd
·
unverified ·
1 Parent(s): 1ddc3af

sketchpad fixes

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -15,8 +15,6 @@ def classify_digit(image):
15
  df = pd.DataFrame(result)
16
  return df
17
 
18
- sketchpad = gr.inputs.Sketchpad()
19
- output_box = gr.outputs.Dataframe()
20
-
21
- iface = gr.Interface(fn=classify_digit, inputs=sketchpad, outputs=output_box)
22
- iface.launch()
 
15
  df = pd.DataFrame(result)
16
  return df
17
 
18
+ iface = gr.Interface(fn=classify_digit, inputs='sketchpad', outputs=gr.outputs.Dataframe(),
19
+ allow_flagging='never', description='Draw a Digit Below... (Draw in the centre for best results)')
20
+ iface.launch(share=False, width=300, height=500)