File size: 308 Bytes
b5ac54b 3019ade b5ac54b 3019ade b5ac54b |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
def greet(name):
result = "Label Probabilities:\n" + "afr_amr: 0.797795832157135\n" + "asian: 0.17413224279880524\n"+ "latin: 0.013226916082203388\n"+ "white: 0.014844958670437336"
return result
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()
|