Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
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(0.14844958670437336,2)*100}"
|
7 |
|
8 |
return result
|
9 |
|
|
|
2 |
|
3 |
|
4 |
def greet(name):
|
5 |
+
result = "Label Probabilities:\n" + f"African American: {str(round(0.797795832157135,2)*100)}\n"
|
6 |
+
+ f"Asian: {str(round(0.17413224279880524,2)*100)}\n"+ f"Latin: {str(round(0.0132269160822033,2)*100)}\n"+ f"White: {str(round(0.14844958670437336,2)*100)}"
|
7 |
|
8 |
return result
|
9 |
|