import gradio as gr import socket def greet(name): return socket.gethostbyname(name) iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()