File size: 691 Bytes
1a7d583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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],
            )