import gradio as gr from transformers import pipeline def sentiment_fn(sentences): model = pipeline("sentiment-analysis", model="panyqueso/my-cool-model") return model(sentences) demo = gr.Interface(fn=sentiment_fn, inputs="textbox", outputs="textbox") demo.launch(share=True, debug=True)