CoolFace
Apppublic

mosi77/5

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
app.py65 linesDownload Raw Back to root
1import gradio as gr2import sys3import os4import logging5 6now_dir = os.getcwd()7sys.path.append(now_dir)8 9# Tabs10from tabs.inference.inference import inference_tab11from tabs.download.download import download_tab12from tabs.tts.tts import tts_tab13 14# Assets15import assets.themes.loadThemes as loadThemes16from assets.i18n.i18n import I18nAuto17import assets.installation_checker as installation_checker18from assets.discord_presence import RPCManager19from assets.flask.server import start_flask, load_config_flask20from core import run_prerequisites_script21from delete_models import start_infinite_loop22 23run_prerequisites_script("False", "True", "True", "True")24start_infinite_loop()25 26i18n = I18nAuto()27installation_checker.check_installation()28logging.getLogger("uvicorn").disabled = True29logging.getLogger("fairseq").disabled = True30 31my_applio = loadThemes.load_json()32if my_applio:33    pass34else:35    my_applio = "ParityError/Interstellar"36 37with gr.Blocks(theme=my_applio, title="Applio") as Applio:38    gr.Markdown("# Applio")39    gr.Markdown("### From the first Applio to the last")40    gr.Markdown(41        i18n(42            "Ultimate voice cloning tool, meticulously optimized for unrivaled power, modularity, and user-friendly experience."43        )44    )45    gr.Markdown(46        i18n(47            "[Support](https://discord.gg/IAHispano) — [Discord Bot](https://discord.com/oauth2/authorize?client_id=1144714449563955302&permissions=1376674695271&scope=bot%20applications.commands) — [Find Voices](https://applio.org/models) — [GitHub](https://github.com/IAHispano/Applio)"48        )49    )50    with gr.Tab(i18n("Inference")):51        inference_tab()52 53    with gr.Tab(i18n("TTS")):54        tts_tab()55 56    with gr.Tab(i18n("Download")):57        download_tab()58 59 60def launch_gradio():61    Applio.launch()62 63 64if __name__ == "__main__":65    launch_gradio()