From ab77b1db95fbca99095e7a0dd83d1baeabe9a4e6 Mon Sep 17 00:00:00 2001 From: alvertogit <36294057+alvertogit@users.noreply.github.com> Date: Sun, 4 Aug 2024 15:18:59 +0200 Subject: [PATCH] updated dlflask html --- app/app/templates/dlflask.html | 140 ++++++++++++++++++--------------- 1 file changed, 78 insertions(+), 62 deletions(-) diff --git a/app/app/templates/dlflask.html b/app/app/templates/dlflask.html index b272dab..5e4eb9e 100644 --- a/app/app/templates/dlflask.html +++ b/app/app/templates/dlflask.html @@ -1,62 +1,78 @@ - - - - - Predict handwritten digits - - - -

Predict handwritten digits

-

A handwritten example image of a digit is shown below.

-

-

The value of the digit that can be predicted using a Deep Learning model.

-

POST example using curl:

-

curl -F file=@app/app/static/4.jpg -X POST 'http://127.0.0.1/api/predictlabel'

-

{ - "most_probable_label": "4", - "predictions": [ - { - "label": "0", - "probability": "8.55888e-09" - }, - { - "label": "1", - "probability": "1.952776e-05" - }, - { - "label": "2", - "probability": "1.6258126e-06" - }, - { - "label": "3", - "probability": "6.6119924e-07" - }, - { - "label": "4", - "probability": "0.9931753" - }, - { - "label": "5", - "probability": "8.9275824e-07" - }, - { - "label": "6", - "probability": "3.894695e-06" - }, - { - "label": "7", - "probability": "0.0067486116" - }, - { - "label": "8", - "probability": "9.569092e-06" - }, - { - "label": "9", - "probability": "3.984138e-05" - } - ], - "success": true - }

- - + + + + Predict handwritten digits + + + + + + +
+

Predict handwritten digits

+

A handwritten example image of a digit is shown below.

+ +

The value of the digit that can be predicted using a Deep Learning model.

+ +

POST example using curl

+
+
+
curl -F file=@app/app/static/4.jpg -X POST 'http://127.0.0.1/api/predictlabel'
+
+
+{
+  "most_probable_label": "4",
+  "predictions": [
+    {
+      "label": "0",
+      "probability": "8.55888e-09"
+    },
+    {
+      "label": "1",
+      "probability": "1.952776e-05"
+    },
+    {
+      "label": "2",
+      "probability": "1.6258126e-06"
+    },
+    {
+      "label": "3",
+      "probability": "6.6119924e-07"
+    },
+    {
+      "label": "4",
+      "probability": "0.9931753"
+    },
+    {
+      "label": "5",
+      "probability": "8.9275824e-07"
+    },
+    {
+      "label": "6", 
+      "probability": "3.894695e-06"
+    },
+    {
+      "label": "7",
+      "probability": "0.0067486116"
+    },
+    {
+      "label": "8",
+      "probability": "9.569092e-06"
+    },
+    {
+      "label": "9",
+      "probability": "3.984138e-05"
+    }
+  ],
+  "success": true
+}
+      
+
+
+
+
+
CREDITS
+

author: alvertogit
copyright: 2018-2024

+
+ +