Zakia commited on
Commit
0d81bd6
·
1 Parent(s): 1754b09

change output text colour

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -44,6 +44,8 @@ description = "A diabetes-related amputation machine learning model trained on t
44
  article = "<p style='text-align: center'><span style='font-size: 15pt;'>Copyright &copy; DIARC. 2021. All Rights Reserved. Contact Us: <a href='mailto:[email protected]'>Dr Sifisiso Mtshali</a> or <a href='mailto:[email protected]'>Dr Ozayr Mahomed</a></span></p>"
45
 
46
 
 
 
47
  iface = gr.Interface(
48
  fn=predict_amputation,
49
  title=title,
@@ -59,6 +61,7 @@ iface = gr.Interface(
59
  [30, "Male", "Coloured", 1],
60
  [65, "Female", "Other", 2],
61
  ],
 
62
  )
63
 
64
 
 
44
  article = "<p style='text-align: center'><span style='font-size: 15pt;'>Copyright &copy; DIARC. 2021. All Rights Reserved. Contact Us: <a href='mailto:[email protected]'>Dr Sifisiso Mtshali</a> or <a href='mailto:[email protected]'>Dr Ozayr Mahomed</a></span></p>"
45
 
46
 
47
+
48
+
49
  iface = gr.Interface(
50
  fn=predict_amputation,
51
  title=title,
 
61
  [30, "Male", "Coloured", 1],
62
  [65, "Female", "Other", 2],
63
  ],
64
+ gr.outputs.HighlightedText(color_map={"+": "lightgreen", "-": "pink", }))
65
  )
66
 
67