CatoEr's picture
Update app.py
0d09bb1 verified
raw
history blame
403 Bytes
import gradio as gr
def greet(name):
result = "Label Probabilities:\n" + f"African American: {str(round(0.797795832157135,2)*100)}\n"
+ 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)}"
return result
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()