Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,16 +21,16 @@ import numpy as np
|
|
21 |
#from sklearn.metrics import accuracy_score
|
22 |
|
23 |
|
24 |
-
|
25 |
#from keras.preprocessing import image
|
26 |
#from keras.applications.vgg16 import VGG16, preprocess_input
|
27 |
#import heapq
|
28 |
|
29 |
-
file = open("focusondriving.json", 'r')
|
30 |
-
model_json2 = file.read()
|
31 |
-
file.close()
|
32 |
-
loaded_model = model_from_json(model_json2)
|
33 |
-
loaded_model.load_weights("focusondriving.h5")
|
34 |
|
35 |
class_dict = {
|
36 |
'c0': 'hands on the wheel',
|
|
|
21 |
#from sklearn.metrics import accuracy_score
|
22 |
|
23 |
|
24 |
+
3from keras.models import model_from_json
|
25 |
#from keras.preprocessing import image
|
26 |
#from keras.applications.vgg16 import VGG16, preprocess_input
|
27 |
#import heapq
|
28 |
|
29 |
+
#file = open("focusondriving.json", 'r')
|
30 |
+
#model_json2 = file.read()
|
31 |
+
#file.close()
|
32 |
+
#loaded_model = model_from_json(model_json2)
|
33 |
+
#loaded_model.load_weights("focusondriving.h5")
|
34 |
|
35 |
class_dict = {
|
36 |
'c0': 'hands on the wheel',
|