Update xtts_settings_page.py
This commit is contained in:
1 parent
5ced67d5ee
commit
23d813021b
1 file changed
+2
-2
@@ -99,7 +99,7 @@ def xtts_model_update_settings(def_character_voice_gr, def_narrator_voice_gr, lo
|
|||||||
def xtts_model_alltalk_settings(model_config_data):
|
def xtts_model_alltalk_settings(model_config_data):
|
||||||
features_list = model_config_data['model_capabilties']
|
features_list = model_config_data['model_capabilties']
|
||||||
voice_list = xtts_voices_file_list()
|
voice_list = xtts_voices_file_list()
|
||||||
with gr.Blocks(title="Xtts TTS") as app:
|
with gr.Blocks(title="Xtts TTS", analytics_enabled=False) as app:
|
||||||
with gr.Tab("Default Settings"):
|
with gr.Tab("Default Settings"):
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
lowvram_enabled_gr = gr.Radio(choices={"Enabled": "true", "Disabled": "false"}, label="Low VRAM" if model_config_data["model_capabilties"]["lowvram_capable"] else "Low VRAM N/A", value="Enabled" if model_config_data["settings"]["lowvram_enabled"] else "Disabled", interactive=model_config_data["model_capabilties"]["lowvram_capable"])
|
lowvram_enabled_gr = gr.Radio(choices={"Enabled": "true", "Disabled": "false"}, label="Low VRAM" if model_config_data["model_capabilties"]["lowvram_capable"] else "Low VRAM N/A", value="Enabled" if model_config_data["settings"]["lowvram_enabled"] else "Disabled", interactive=model_config_data["model_capabilties"]["lowvram_capable"])
|
||||||
@@ -357,4 +357,4 @@ def xtts_at_gradio_settings_page(model_config_data):
|
|||||||
return app
|
return app
|
||||||
def xtts_at_gradio_settings_page(model_config_data):
|
def xtts_at_gradio_settings_page(model_config_data):
|
||||||
app = xtts_model_alltalk_settings(model_config_data)
|
app = xtts_model_alltalk_settings(model_config_data)
|
||||||
return app
|
return app
|
||||||
Reference in new issue
Block a user