import gradio as gr def uppercase(text): return text.upper() iface = gr.Interface(fn=uppercase, inputs="text", outputs="text") iface.launch()