Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from tensorflow.keras.applications.resnet50 import preprocess_input
|
|
6 |
from tensorflow.keras.models import load_model
|
7 |
|
8 |
# Load your trained modelC:\Daten\Studium Wirtsc
|
9 |
-
model = load_model('
|
10 |
|
11 |
def predict_teigwaren(img):
|
12 |
img = Image.fromarray(img.astype('uint8'), 'RGB') # Ensure the image is in RGB
|
|
|
6 |
from tensorflow.keras.models import load_model
|
7 |
|
8 |
# Load your trained modelC:\Daten\Studium Wirtsc
|
9 |
+
model = load_model('/home/user/app/model.h5') # Ensure this path is correct
|
10 |
|
11 |
def predict_teigwaren(img):
|
12 |
img = Image.fromarray(img.astype('uint8'), 'RGB') # Ensure the image is in RGB
|