CatoEr commited on
Commit
f4a8dcc
·
verified ·
1 Parent(s): 3019ade

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
 
3
 
4
  def greet(name):
5
- result = "Label Probabilities:\n" + "afr_amr: 0.797795832157135\n" + "asian: 0.17413224279880524\n"+ "latin: 0.013226916082203388\n"+ "white: 0.014844958670437336"
 
6
 
7
  return result
8
 
 
2
 
3
 
4
  def greet(name):
5
+ result = "Label Probabilities:\n" + f"African American: {round(0.797795832157135,2)*100}\n"
6
+ + f"Asian: {round(0.17413224279880524,2)*100}\n"+ f"Latin: {round(0.0132269160822033,2)*100}\n"+ f"White: {round(014844958670437336,2)*100}"
7
 
8
  return result
9