Spaces:
Sleeping
Sleeping
logging values
Browse files
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 |
|