Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import cv2
|
|
2 |
import gradio as gr
|
3 |
import tensorflow as tf
|
4 |
import numpy as np
|
5 |
-
import
|
6 |
|
7 |
title = "Welcome on your first sketch recognition app!"
|
8 |
|
@@ -17,7 +17,7 @@ model = tf.keras.models.load_model("number_recognition_model_colab.keras")
|
|
17 |
|
18 |
|
19 |
img_size = 28
|
20 |
-
|
21 |
labels = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
|
22 |
|
23 |
# Tahmin fonksiyonu
|
|
|
2 |
import gradio as gr
|
3 |
import tensorflow as tf
|
4 |
import numpy as np
|
5 |
+
from PIL import Image
|
6 |
|
7 |
title = "Welcome on your first sketch recognition app!"
|
8 |
|
|
|
17 |
|
18 |
|
19 |
img_size = 28
|
20 |
+
|
21 |
labels = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
|
22 |
|
23 |
# Tahmin fonksiyonu
|