import gradio as gr import soundex iface = gr.Interface(fn=soundex.compare, inputs=['text', 'text'], outputs='text') iface.launch()