import gradio as gr from transformers import pipeline def greet(name): return "Hello " + name + '!!!' pipe = pipeline('sentiment-analysis') iface = gr.Interface(fn=greet, inputs='text', outputs='text') # to share public link - set share=True in launch() iface.launch()