Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
def predict(img):
|
3 |
# Preprocess the input image
|
|
|
1 |
+
import cv2
|
2 |
+
import gradio as gr
|
3 |
+
import tensorflow as tf
|
4 |
+
import numpy as np
|
5 |
+
|
6 |
+
|
7 |
+
model = tf.keras.models.load_model("number_recognition_model_colab.keras")
|
8 |
+
|
9 |
+
|
10 |
|
11 |
def predict(img):
|
12 |
# Preprocess the input image
|