2023-05-09 16:59:18 +03:00
|
|
|
import traceback
|
|
|
|
|
|
|
|
|
|
from vacore import VACore
|
|
|
|
|
import time
|
2023-06-10 13:56:50 +03:00
|
|
|
import os
|
2023-05-09 16:59:18 +03:00
|
|
|
|
2023-06-10 13:56:50 +03:00
|
|
|
if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
|
|
|
|
|
os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
|
2023-05-09 16:59:18 +03:00
|
|
|
|
2023-06-10 13:56:50 +03:00
|
|
|
import gradio as gr
|
2023-05-09 16:59:18 +03:00
|
|
|
|
|
|
|
|
# ------------------- main loop ------------------
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
cmd_core = VACore()
|
|
|
|
|
cmd_core.init_with_plugins()
|
|
|
|
|
print("Settings manager for VoiceAssistantCore.")
|
|
|
|
|
|
2023-05-11 16:45:47 +03:00
|
|
|
gr_int = cmd_core.gradio_render_settings_interface(
|
|
|
|
|
title="Менеджер настроек для голосового помощника Ирины",
|
|
|
|
|
#required_fields_to_show_plugin=["options","description"]
|
|
|
|
|
required_fields_to_show_plugin=["options","description"]
|
|
|
|
|
)
|
2023-05-09 18:14:09 +03:00
|
|
|
gr_int.launch(inbrowser=True)
|