import gradio as gr from ernie.ernie import SentenceClassifier from ernie import helper def greet(name): return "Hello " + name + "!!" iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()