Spaces:
Build error
Build error
udpate app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,7 @@ with gr.Blocks(css=".gradio-container {background:lightyellow;color:red;}", titl
|
|
| 56 |
with gr.Tab("画像ファイル"):
|
| 57 |
input_image2 = gr.Image(label="画像入力", type="pil", image_mode="L", shape=(28, 28), invert_colors=True)
|
| 58 |
send_btn2 = gr.Button("予測する")
|
|
|
|
| 59 |
|
| 60 |
output_label=gr.Label(label="予測確率", num_top_classes=5)
|
| 61 |
|
|
|
|
| 56 |
with gr.Tab("画像ファイル"):
|
| 57 |
input_image2 = gr.Image(label="画像入力", type="pil", image_mode="L", shape=(28, 28), invert_colors=True)
|
| 58 |
send_btn2 = gr.Button("予測する")
|
| 59 |
+
gr.Examples(['examples/example02.png', 'examples/example04.png'], inputs=input_image2)
|
| 60 |
|
| 61 |
output_label=gr.Label(label="予測確率", num_top_classes=5)
|
| 62 |
|