Spaces:
Runtime error
Runtime error
Commit
·
9849d45
1
Parent(s):
e79dda6
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def get_grad(img):
|
|
109 |
if y_pred[0] > 0.5: pred_class = "cat"
|
110 |
else: pred_class = "dog"
|
111 |
|
112 |
-
text = "Raw Score
|
113 |
return grad_img, text
|
114 |
|
115 |
demo = gr.Interface(
|
|
|
109 |
if y_pred[0] > 0.5: pred_class = "cat"
|
110 |
else: pred_class = "dog"
|
111 |
|
112 |
+
text = "Raw Score: " + str(y_pred[0]) + "\nClassification: " + pred_class
|
113 |
return grad_img, text
|
114 |
|
115 |
demo = gr.Interface(
|