Spaces:
Runtime error
Runtime error
fix dict indexing
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import tensorflow as tf
|
|
6 |
def mnist_classifier(img):
|
7 |
#img = tf.image.resize(img, [28, 28])
|
8 |
#img = tf.cast(img, tf.float32)
|
9 |
-
return img
|
10 |
|
11 |
demo = gr.Interface(fn=mnist_classifier, inputs="sketchpad", outputs="image")
|
12 |
demo.launch()
|
|
|
6 |
def mnist_classifier(img):
|
7 |
#img = tf.image.resize(img, [28, 28])
|
8 |
#img = tf.cast(img, tf.float32)
|
9 |
+
return img[0]
|
10 |
|
11 |
demo = gr.Interface(fn=mnist_classifier, inputs="sketchpad", outputs="image")
|
12 |
demo.launch()
|