Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,9 @@ import tensorflow as tf
|
|
5 |
import cv2
|
6 |
import numpy as np
|
7 |
from tensorflow.keras.models import load_model
|
|
|
|
|
|
|
8 |
|
9 |
# Load the pre-trained model
|
10 |
new_model = load_model('cat_classifier_model.h5')
|
@@ -31,4 +34,12 @@ iface = gr.Interface(
|
|
31 |
)
|
32 |
|
33 |
# Launch the Gradio interface
|
34 |
-
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
import cv2
|
6 |
import numpy as np
|
7 |
from tensorflow.keras.models import load_model
|
8 |
+
from tensorflow.keras.models import load_model
|
9 |
+
from tensorflow.keras.preprocessing import image
|
10 |
+
import numpy as np
|
11 |
|
12 |
# Load the pre-trained model
|
13 |
new_model = load_model('cat_classifier_model.h5')
|
|
|
34 |
)
|
35 |
|
36 |
# Launch the Gradio interface
|
37 |
+
iface.launch()
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
|