Spaces:
Sleeping
Sleeping
File size: 403 Bytes
b5ac54b 3019ade b5ac54b 0d09bb1 3019ade b5ac54b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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()
|