import gradio as gr from assets.version_checker import compare_version from assets.i18n.i18n import I18nAuto i18n = I18nAuto() def version_tab(): with gr.Row(): with gr.Column(): version_check = gr.Textbox( label=i18n("Version Checker"), info=i18n( "Check which version of Applio is the latest to see if you need to update." ), interactive=False, ) version_button = gr.Button(i18n("Check for updates")) version_button.click( fn=compare_version, inputs=[], outputs=[version_check], )