Spaces:
Runtime error
Runtime error
Asadel Ann
commited on
Commit
·
6b7d73c
1
Parent(s):
5cce5da
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,10 @@ import matplotlib.pyplot as plt
|
|
6 |
import cv2
|
7 |
import numpy as np
|
8 |
from tensorflow.keras.preprocessing.image import img_to_array
|
|
|
|
|
|
|
9 |
|
10 |
-
model = load_model('/content/bananafreshness/pisang.h5')
|
11 |
def prosesgambar(gambar):
|
12 |
# load the image
|
13 |
image = gambar
|
|
|
6 |
import cv2
|
7 |
import numpy as np
|
8 |
from tensorflow.keras.preprocessing.image import img_to_array
|
9 |
+
from transformers import AutoModel
|
10 |
+
|
11 |
+
model = AutoModel.from_pretrained("asaderu/bananafreshness")
|
12 |
|
|
|
13 |
def prosesgambar(gambar):
|
14 |
# load the image
|
15 |
image = gambar
|