OmerFarooq commited on
Commit
f11be7b
1 Parent(s): 421625a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: " + str(y_pred[0][0]) + "\nClassification: " + pred_class
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 = "\033[1m"+"Raw Score: "+"\033[0m" + str(y_pred[0][0]) + "\n" + "\033[1m"+"Classification: "+"\033[0m" + pred_class
113
  return grad_img, text
114
 
115
  demo = gr.Interface(