Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,11 +38,9 @@ def predict(im):
|
|
38 |
|
39 |
return {LABELS[i]: v.item() for i, v in zip(indices, values)}
|
40 |
|
41 |
-
sketchpad = gr.Image(label="Sketchpad", source="canvas"),
|
42 |
-
|
43 |
interface = gr.Interface(
|
44 |
predict,
|
45 |
-
inputs=
|
46 |
outputs='label',
|
47 |
theme="huggingface",
|
48 |
title="Sketch Recognition",
|
|
|
38 |
|
39 |
return {LABELS[i]: v.item() for i, v in zip(indices, values)}
|
40 |
|
|
|
|
|
41 |
interface = gr.Interface(
|
42 |
predict,
|
43 |
+
inputs=gr.Image(label="Sketchpad", source="canvas"),
|
44 |
outputs='label',
|
45 |
theme="huggingface",
|
46 |
title="Sketch Recognition",
|