Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import onnxruntime as rt
|
|
10 |
|
11 |
modele = hf_hub_download(repo_id="onnx/EfficientNet-Lite4", filename="efficientnet-lite4-11.onnx")
|
12 |
# load the labels text file
|
13 |
-
labels = json.load(open("
|
14 |
|
15 |
# set image file dimensions to 224x224 by resizing and cropping image from center
|
16 |
def pre_process_edgetpu(img, dims):
|
|
|
10 |
|
11 |
modele = hf_hub_download(repo_id="onnx/EfficientNet-Lite4", filename="efficientnet-lite4-11.onnx")
|
12 |
# load the labels text file
|
13 |
+
labels = json.load(open("labels_maps.txt", "r"))
|
14 |
|
15 |
# set image file dimensions to 224x224 by resizing and cropping image from center
|
16 |
def pre_process_edgetpu(img, dims):
|