import gradio as gr import soundex model = soundex.Soundex() iface = gr.Interface(fn=model.compare, inputs=[gr.Textbox(label='Text 1'), gr.Textbox(label='Text 2')], outputs=gr.Textbox(label='Sound distance'), title="Find how different two words sound") iface.launch()