guru001 commited on
Commit
5ec701f
1 Parent(s): eb9d4eb

logging values

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. model.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ sign_api = api()
7
  def sign(input_img):
8
  input_img = Image.fromarray(input_img)
9
  prediction = sign_api.predict(input_img)
 
10
  return prediction
11
 
12
  demo = gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
 
7
  def sign(input_img):
8
  input_img = Image.fromarray(input_img)
9
  prediction = sign_api.predict(input_img)
10
+ print('prediction',prediction)
11
  return prediction
12
 
13
  demo = gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
model.py CHANGED
@@ -74,6 +74,7 @@ class api():
74
  print('ArgMax',ArgMax_val)
75
  index = ArgMax_val.tolist()[0]
76
  class_val = self.classes[index]
 
77
 
78
  # os.remove(os.path.join(self.upload_path,filename))
79
 
 
74
  print('ArgMax',ArgMax_val)
75
  index = ArgMax_val.tolist()[0]
76
  class_val = self.classes[index]
77
+ print('class_val',class_val)
78
 
79
  # os.remove(os.path.join(self.upload_path,filename))
80