Update app.py
Browse files
app.py
CHANGED
|
@@ -1125,7 +1125,6 @@ class TotalConfig(BaseModel):
|
|
| 1125 |
|
| 1126 |
|
| 1127 |
|
| 1128 |
-
total_config = load_config(config_name, TotalConfig) if config_name else TotalConfig()
|
| 1129 |
|
| 1130 |
|
| 1131 |
def render_app() -> gr.Blocks:
|
|
@@ -1193,18 +1192,17 @@ def render_app() -> gr.Blocks:
|
|
| 1193 |
component_config.instantiate()
|
| 1194 |
# main tab
|
| 1195 |
# with gr.Tab("Generate", elem_id="generate-tab"):
|
| 1196 |
-
with gr.Tab("
|
| 1197 |
render_song_cover_one_click_tab(total_config, cookiefile)
|
| 1198 |
render_song_cover_multi_step_tab(total_config, cookiefile)
|
| 1199 |
with gr.Tab("Speech", elem_id="generate-tab"):
|
| 1200 |
render_speech_one_click_tab(total_config)
|
| 1201 |
render_speech_multi_step_tab(total_config)
|
| 1202 |
with gr.Tab("Configuration", elem_id="settings-tab"):
|
| 1203 |
-
with gr.Tab("Models"
|
| 1204 |
render_models_tab(total_config)
|
| 1205 |
-
with gr.Tab("Settings"
|
| 1206 |
render_settings_tab(total_config)
|
| 1207 |
-
# with gr.Tab("Audio", elem_id="audio-tab"):
|
| 1208 |
render_audio_tab(total_config)
|
| 1209 |
|
| 1210 |
app.load(
|
|
@@ -1366,6 +1364,7 @@ def start_app(
|
|
| 1366 |
)
|
| 1367 |
|
| 1368 |
|
|
|
|
| 1369 |
load_config("default", TotalConfig)
|
| 1370 |
load_config("theme", TotalConfig)
|
| 1371 |
if __name__ == "__main__":
|
|
|
|
| 1125 |
|
| 1126 |
|
| 1127 |
|
|
|
|
| 1128 |
|
| 1129 |
|
| 1130 |
def render_app() -> gr.Blocks:
|
|
|
|
| 1192 |
component_config.instantiate()
|
| 1193 |
# main tab
|
| 1194 |
# with gr.Tab("Generate", elem_id="generate-tab"):
|
| 1195 |
+
with gr.Tab("Music", elem_id="generate-tab"):
|
| 1196 |
render_song_cover_one_click_tab(total_config, cookiefile)
|
| 1197 |
render_song_cover_multi_step_tab(total_config, cookiefile)
|
| 1198 |
with gr.Tab("Speech", elem_id="generate-tab"):
|
| 1199 |
render_speech_one_click_tab(total_config)
|
| 1200 |
render_speech_multi_step_tab(total_config)
|
| 1201 |
with gr.Tab("Configuration", elem_id="settings-tab"):
|
| 1202 |
+
with gr.Tab("Models"):
|
| 1203 |
render_models_tab(total_config)
|
| 1204 |
+
with gr.Tab("Settings"):
|
| 1205 |
render_settings_tab(total_config)
|
|
|
|
| 1206 |
render_audio_tab(total_config)
|
| 1207 |
|
| 1208 |
app.load(
|
|
|
|
| 1364 |
)
|
| 1365 |
|
| 1366 |
|
| 1367 |
+
total_config = load_config(config_name, TotalConfig) if config_name else TotalConfig()
|
| 1368 |
load_config("default", TotalConfig)
|
| 1369 |
load_config("theme", TotalConfig)
|
| 1370 |
if __name__ == "__main__":
|