Spaces:
Build error
Build error
jineetshah commited on
sketchpad fixes
Browse files
app.py
CHANGED
|
@@ -15,8 +15,6 @@ def classify_digit(image):
|
|
| 15 |
df = pd.DataFrame(result)
|
| 16 |
return df
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 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)
|
|
|
|
|
|