import gradio as gr def predict(text): return text demo = gr.Interface( fn=predict, inputs='textbox', outputs='text', ) demo.launch()