CatoEr's picture
Update app.py
b33222b verified
raw
history blame
383 Bytes
import gradio as gr
def greet(name):
result = "Label Probabilities:\n" + f"African American: {round(0.797795832157135,2)*100}\n"
+ f"Asian: {round(0.17413224279880524,2)*100}\n"+ f"Latin: {round(0.0132269160822033,2)*100}\n"+ f"White: {round(0.14844958670437336,2)*100}"
return result
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()