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