import gradio def my_inference_function(text): return text gr = gradio.Interface( fn = my_inference_function, inputs = "text", outputs = "text" ) gr.load("models/arpanghoshal/EmoRoBERTa").launch()