Spaces:
Runtime error
Runtime error
cybernatedArt
commited on
Commit
·
70e750e
1
Parent(s):
bc246b5
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,14 @@ from tensorflow.keras.applications.resnet50 import preprocess_input
|
|
7 |
from tensorflow.keras.models import load_model
|
8 |
from transformers import pipeline
|
9 |
|
|
|
10 |
model = tf.keras.models.load_model('model_2.h5')
|
11 |
|
|
|
|
|
|
|
|
|
|
|
12 |
#function
|
13 |
def example(image):
|
14 |
image = image.reshape(-1, 256, 256, 3)
|
|
|
7 |
from tensorflow.keras.models import load_model
|
8 |
from transformers import pipeline
|
9 |
|
10 |
+
|
11 |
model = tf.keras.models.load_model('model_2.h5')
|
12 |
|
13 |
+
|
14 |
+
|
15 |
+
pipe = pipeline(task="image-classification",
|
16 |
+
# model for 22k-category classification
|
17 |
+
model)
|
18 |
#function
|
19 |
def example(image):
|
20 |
image = image.reshape(-1, 256, 256, 3)
|