Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,9 @@ with gr.Blocks(css=".gradio-container {background:lightyellow;color:red;}", titl
|
|
48 |
) as demo:
|
49 |
gr.HTML('<div style="font-size:12pt; text-align:center; color:yellow;"MNIST 分類器</div>')
|
50 |
|
51 |
-
with gr.Row():
|
52 |
-
input_image = gr.Image(label="画像入力", type="pil", image_mode="L", shape=(28,
|
|
|
53 |
|
54 |
output_label=gr.Label(label="予測確率", num_top_classes=5)
|
55 |
|
|
|
48 |
) as demo:
|
49 |
gr.HTML('<div style="font-size:12pt; text-align:center; color:yellow;"MNIST 分類器</div>')
|
50 |
|
51 |
+
with gr.Row():
|
52 |
+
input_image = gr.Image(label="画像入力", source="canvas", type="pil", image_mode="L", shape=(28,28), invert_colors=True)
|
53 |
+
#input_image = gr.Image(label="画像入力", type="pil", image_mode="L", shape=(28, 28), invert_colors=True)
|
54 |
|
55 |
output_label=gr.Label(label="予測確率", num_top_classes=5)
|
56 |
|