Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,20 +8,8 @@ sys.path.append(now_dir)
|
|
8 |
|
9 |
# Tabs
|
10 |
from tabs.inference.inference import inference_tab
|
11 |
-
from tabs.train.train import train_tab
|
12 |
-
from tabs.extra.extra import extra_tab
|
13 |
-
from tabs.report.report import report_tab
|
14 |
from tabs.download.download import download_tab
|
15 |
from tabs.tts.tts import tts_tab
|
16 |
-
from tabs.voice_blender.voice_blender import voice_blender_tab
|
17 |
-
from tabs.settings.presence import presence_tab, load_config_presence
|
18 |
-
from tabs.settings.flask_server import flask_server_tab
|
19 |
-
from tabs.settings.fake_gpu import fake_gpu_tab, gpu_available, load_fake_gpu
|
20 |
-
from tabs.settings.themes import theme_tab
|
21 |
-
from tabs.plugins.plugins import plugins_tab
|
22 |
-
from tabs.settings.version import version_tab
|
23 |
-
from tabs.settings.lang import lang_tab
|
24 |
-
from tabs.settings.restart import restart_tab
|
25 |
|
26 |
# Assets
|
27 |
import assets.themes.loadThemes as loadThemes
|
@@ -36,14 +24,9 @@ run_prerequisites_script("False", "True", "True", "True")
|
|
36 |
start_infinite_loop()
|
37 |
|
38 |
i18n = I18nAuto()
|
39 |
-
if load_config_presence() == True:
|
40 |
-
RPCManager.start_presence()
|
41 |
installation_checker.check_installation()
|
42 |
logging.getLogger("uvicorn").disabled = True
|
43 |
logging.getLogger("fairseq").disabled = True
|
44 |
-
if load_config_flask() == True:
|
45 |
-
print("Starting Flask server")
|
46 |
-
start_flask()
|
47 |
|
48 |
my_applio = loadThemes.load_json()
|
49 |
if my_applio:
|
@@ -66,44 +49,12 @@ with gr.Blocks(theme=my_applio, title="Applio") as Applio:
|
|
66 |
with gr.Tab(i18n("Inference")):
|
67 |
inference_tab()
|
68 |
|
69 |
-
# with gr.Tab(i18n("Train")):
|
70 |
-
# if gpu_available() or load_fake_gpu():
|
71 |
-
# train_tab()
|
72 |
-
# else:
|
73 |
-
# gr.Markdown(
|
74 |
-
# i18n(
|
75 |
-
# "Currently, training is unsupported due to the absence of a GPU. If you have a PC with a GPU and wish to train a model, please refer to our installation guide here: [Applio Installation Guide](https://docs.applio.org/get-started/installation/). For those without a GPU-enabled PC, explore alternative options here: [Applio Alternatives](https://docs.applio.org/get-started/alternatives/)."
|
76 |
-
# )
|
77 |
-
# )
|
78 |
-
|
79 |
with gr.Tab(i18n("TTS")):
|
80 |
tts_tab()
|
81 |
|
82 |
-
# with gr.Tab(i18n("Voice Blender")):
|
83 |
-
# voice_blender_tab()
|
84 |
-
|
85 |
-
# with gr.Tab(i18n("Plugins")):
|
86 |
-
# plugins_tab()
|
87 |
-
|
88 |
with gr.Tab(i18n("Download")):
|
89 |
download_tab()
|
90 |
|
91 |
-
with gr.Tab(i18n("Report a Bug")):
|
92 |
-
report_tab()
|
93 |
-
|
94 |
-
with gr.Tab(i18n("Extra")):
|
95 |
-
extra_tab()
|
96 |
-
|
97 |
-
# with gr.Tab(i18n("Settings")):
|
98 |
-
# presence_tab()
|
99 |
-
# flask_server_tab()
|
100 |
-
# if not gpu_available():
|
101 |
-
# fake_gpu_tab()
|
102 |
-
# theme_tab()
|
103 |
-
# version_tab()
|
104 |
-
# lang_tab()
|
105 |
-
# restart_tab()
|
106 |
-
|
107 |
|
108 |
def launch_gradio():
|
109 |
Applio.launch()
|
|
|
8 |
|
9 |
# Tabs
|
10 |
from tabs.inference.inference import inference_tab
|
|
|
|
|
|
|
11 |
from tabs.download.download import download_tab
|
12 |
from tabs.tts.tts import tts_tab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# Assets
|
15 |
import assets.themes.loadThemes as loadThemes
|
|
|
24 |
start_infinite_loop()
|
25 |
|
26 |
i18n = I18nAuto()
|
|
|
|
|
27 |
installation_checker.check_installation()
|
28 |
logging.getLogger("uvicorn").disabled = True
|
29 |
logging.getLogger("fairseq").disabled = True
|
|
|
|
|
|
|
30 |
|
31 |
my_applio = loadThemes.load_json()
|
32 |
if my_applio:
|
|
|
49 |
with gr.Tab(i18n("Inference")):
|
50 |
inference_tab()
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
with gr.Tab(i18n("TTS")):
|
53 |
tts_tab()
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
with gr.Tab(i18n("Download")):
|
56 |
download_tab()
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
def launch_gradio():
|
60 |
Applio.launch()
|