Spaces:
Sleeping
Sleeping
app
Browse files
app.py
CHANGED
|
@@ -183,11 +183,14 @@ with gr.Blocks(title="Siamese MNIST Matcher") as demo:
|
|
| 183 |
|
| 184 |
# -------- DRAW TAB --------
|
| 185 |
with gr.Tab("Draw digit"):
|
| 186 |
-
draw_input = gr.
|
| 187 |
label="Draw a digit",
|
|
|
|
|
|
|
|
|
|
| 188 |
height=280,
|
| 189 |
-
width=280
|
| 190 |
-
|
| 191 |
draw_btn = gr.Button("Predict")
|
| 192 |
draw_text = gr.Textbox(label="Prediction")
|
| 193 |
draw_plot = gr.Plot(label="Top 3 matches")
|
|
|
|
| 183 |
|
| 184 |
# -------- DRAW TAB --------
|
| 185 |
with gr.Tab("Draw digit"):
|
| 186 |
+
draw_input = gr.Image(
|
| 187 |
label="Draw a digit",
|
| 188 |
+
source="canvas",
|
| 189 |
+
tool="sketch",
|
| 190 |
+
type="numpy",
|
| 191 |
height=280,
|
| 192 |
+
width=280)
|
| 193 |
+
|
| 194 |
draw_btn = gr.Button("Predict")
|
| 195 |
draw_text = gr.Textbox(label="Prediction")
|
| 196 |
draw_plot = gr.Plot(label="Top 3 matches")
|