Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,10 @@ import tensorflow as tf
|
|
3 |
from tensorflow.keras.applications.inception_resnet_v2 import preprocess_input
|
4 |
from tensorflow.keras.preprocessing import image
|
5 |
import numpy as np
|
6 |
-
from huggingface_hub import hf_hub_download
|
7 |
from PIL import Image
|
8 |
|
9 |
-
#
|
10 |
-
model_path =
|
11 |
|
12 |
# Load the trained InceptionV2 model
|
13 |
model = tf.keras.models.load_model(model_path)
|
|
|
3 |
from tensorflow.keras.applications.inception_resnet_v2 import preprocess_input
|
4 |
from tensorflow.keras.preprocessing import image
|
5 |
import numpy as np
|
|
|
6 |
from PIL import Image
|
7 |
|
8 |
+
# Define the path to your model file
|
9 |
+
model_path = "best_model_InceptionV2.keras"
|
10 |
|
11 |
# Load the trained InceptionV2 model
|
12 |
model = tf.keras.models.load_model(model_path)
|