KikoDM commited on
Commit
8b3f5b8
·
1 Parent(s): 9270cd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -21,16 +21,16 @@ import numpy as np
21
  #from sklearn.metrics import accuracy_score
22
 
23
 
24
- from 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',
 
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',