Spaces:
Sleeping
Sleeping
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() | |