Spaces:
Running
Running
karanravindra
commited on
Commit
•
6800ab4
1
Parent(s):
beb2ed5
make better description
Browse files
app.py
CHANGED
@@ -39,16 +39,27 @@ input = gr.Sketchpad(
|
|
39 |
brush=gr.Brush(colors=["rgb(239, 68, 68)"], color_mode="fixed", default_size=20),
|
40 |
)
|
41 |
|
42 |
-
output = gr.Label(num_top_classes=10)
|
43 |
|
44 |
demo = gr.Interface(
|
45 |
fn=predict,
|
46 |
live=True,
|
47 |
inputs=input,
|
48 |
-
outputs=
|
49 |
-
|
50 |
title="DigitNet",
|
51 |
-
description="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
flagging_mode="never"
|
53 |
)
|
54 |
|
|
|
39 |
brush=gr.Brush(colors=["rgb(239, 68, 68)"], color_mode="fixed", default_size=20),
|
40 |
)
|
41 |
|
42 |
+
output = gr.Label(num_top_classes=10, label="Prediction")
|
43 |
|
44 |
demo = gr.Interface(
|
45 |
fn=predict,
|
46 |
live=True,
|
47 |
inputs=input,
|
48 |
+
outputs=output,
|
49 |
+
clear_btn=gr.Button("Clear"),
|
50 |
title="DigitNet",
|
51 |
+
description="""Welcome to **DigitNet**, a tool for recognizing handwritten numbers.
|
52 |
+
|
53 |
+
### How to Use DigitNet
|
54 |
+
|
55 |
+
1. **Draw a Number**: Use the canvas on the left to draw a number (0-9).
|
56 |
+
2. **Edit as Needed**: Use the eraser or **Clear** to fix or reset.
|
57 |
+
3. **See Prediction**: View the predicted number and confidence score.
|
58 |
+
4. **Try Again**: Click **Clear** to draw again.
|
59 |
+
|
60 |
+
### Tips for Best Results
|
61 |
+
- Draw in the middle of the canvas.
|
62 |
+
- Experiment with different writing styles.""",
|
63 |
flagging_mode="never"
|
64 |
)
|
65 |
|