Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,11 +31,8 @@ def get_model(model_type):
|
|
31 |
zip_ref.extractall('./')
|
32 |
|
33 |
model = keras.models.load_model(model_type)
|
34 |
-
|
35 |
-
|
36 |
-
label_map = LABEL_MAPS.get(data_type)
|
37 |
label_map = {v: k for k, v in label_map.items()}
|
38 |
-
|
39 |
return model, label_map
|
40 |
|
41 |
|
|
|
31 |
zip_ref.extractall('./')
|
32 |
|
33 |
model = keras.models.load_model(model_type)
|
34 |
+
label_map = LABEL_MAPS.get('K400')
|
|
|
|
|
35 |
label_map = {v: k for k, v in label_map.items()}
|
|
|
36 |
return model, label_map
|
37 |
|
38 |
|