PlayerBPlaytime commited on
Commit
1a82c00
·
verified ·
1 Parent(s): 2ee1043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -57
app.py CHANGED
@@ -5,23 +5,8 @@ import os
5
  now_dir = os.getcwd()
6
  sys.path.append(now_dir)
7
 
8
- # Tabs
9
- from tabs.inference.inference import inference_tab
10
- from tabs.train.train import train_tab
11
- from tabs.extra.extra import extra_tab
12
- from tabs.report.report import report_tab
13
- from tabs.download.download import download_tab
14
- from tabs.tts.tts import tts_tab
15
  from tabs.voice_blender.voice_blender import voice_blender_tab
16
- from tabs.plugins.plugins import plugins_tab
17
- from tabs.settings.version import version_tab
18
- from tabs.settings.lang import lang_tab
19
- from tabs.settings.restart import restart_tab
20
- from tabs.settings.presence import presence_tab, load_config_presence
21
- from tabs.settings.flask_server import flask_server_tab
22
- from tabs.settings.fake_gpu import fake_gpu_tab, gpu_available, load_fake_gpu
23
- from tabs.settings.themes import theme_tab
24
- from tabs.settings.precision import precision_tab
25
 
26
  # Assets
27
  import assets.themes.loadThemes as loadThemes
@@ -54,6 +39,7 @@ if my_applio:
54
  else:
55
  my_applio = "ParityError/Interstellar"
56
 
 
57
  with gr.Blocks(theme=my_applio, title="Applio") as Applio:
58
  gr.Markdown("# Applio")
59
  gr.Markdown(
@@ -66,49 +52,9 @@ with gr.Blocks(theme=my_applio, title="Applio") as Applio:
66
  "[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)"
67
  )
68
  )
69
- with gr.Tab(i18n("Inference")):
70
- inference_tab()
71
-
72
- with gr.Tab(i18n("Train")):
73
- if gpu_available() or load_fake_gpu():
74
- train_tab()
75
- else:
76
- gr.Markdown(
77
- i18n(
78
- "Training is currently unsupported due to the absence of a GPU. To activate the training tab, navigate to the settings tab and enable the 'Fake GPU' option."
79
- )
80
- )
81
-
82
- with gr.Tab(i18n("TTS")):
83
- tts_tab()
84
-
85
  with gr.Tab(i18n("Voice Blender")):
86
  voice_blender_tab()
87
 
88
- with gr.Tab(i18n("Plugins")):
89
- plugins_tab()
90
-
91
- with gr.Tab(i18n("Download")):
92
- download_tab()
93
-
94
- with gr.Tab(i18n("Report a Bug")):
95
- report_tab()
96
-
97
- with gr.Tab(i18n("Extra")):
98
- extra_tab()
99
-
100
- with gr.Tab(i18n("Settings")):
101
- presence_tab()
102
- flask_server_tab()
103
- precision_tab()
104
- if not gpu_available():
105
- fake_gpu_tab()
106
- theme_tab()
107
- version_tab()
108
- lang_tab()
109
- restart_tab()
110
-
111
-
112
  def launch_gradio(port):
113
  Applio.launch(
114
  favicon_path="assets/ICON.ico",
@@ -117,7 +63,6 @@ def launch_gradio(port):
117
  server_port=port,
118
  )
119
 
120
-
121
  if __name__ == "__main__":
122
  Applio.launch()
123
  # share=True
 
5
  now_dir = os.getcwd()
6
  sys.path.append(now_dir)
7
 
8
+ # Solo necesitas importar el módulo de la pestaña "Voice Blender"
 
 
 
 
 
 
9
  from tabs.voice_blender.voice_blender import voice_blender_tab
 
 
 
 
 
 
 
 
 
10
 
11
  # Assets
12
  import assets.themes.loadThemes as loadThemes
 
39
  else:
40
  my_applio = "ParityError/Interstellar"
41
 
42
+ # Aquí defines la interfaz de Gradio con solo la pestaña de "Voice Blender"
43
  with gr.Blocks(theme=my_applio, title="Applio") as Applio:
44
  gr.Markdown("# Applio")
45
  gr.Markdown(
 
52
  "[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)"
53
  )
54
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  with gr.Tab(i18n("Voice Blender")):
56
  voice_blender_tab()
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  def launch_gradio(port):
59
  Applio.launch(
60
  favicon_path="assets/ICON.ico",
 
63
  server_port=port,
64
  )
65
 
 
66
  if __name__ == "__main__":
67
  Applio.launch()
68
  # share=True