Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import tensorflow as tf
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# Load the model
|
| 6 |
-
model = tf.keras.models.load_model('
|
| 7 |
|
| 8 |
# Classification prediction function
|
| 9 |
labels = [0,1,2,3,4,5,6,7,8,9]
|
|
@@ -18,8 +18,7 @@ interface = gr.Interface(fn=classify_image,
|
|
| 18 |
inputs="sketchpad",
|
| 19 |
outputs=label,
|
| 20 |
capture_session="True",
|
| 21 |
-
|
| 22 |
-
title = "Under Maintenance",
|
| 23 |
description = "This is a machine learning model which can classify the hand written digits from 0-9.")
|
| 24 |
|
| 25 |
# Launch
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# Load the model
|
| 6 |
+
model = tf.keras.models.load_model('mnist_trained_model_2(acc-97%).h5')
|
| 7 |
|
| 8 |
# Classification prediction function
|
| 9 |
labels = [0,1,2,3,4,5,6,7,8,9]
|
|
|
|
| 18 |
inputs="sketchpad",
|
| 19 |
outputs=label,
|
| 20 |
capture_session="True",
|
| 21 |
+
title = "Digits Classification",
|
|
|
|
| 22 |
description = "This is a machine learning model which can classify the hand written digits from 0-9.")
|
| 23 |
|
| 24 |
# Launch
|