修复配置文件bug

修复读取配置文件bug
This commit is contained in:
xszyou 2023-06-26 10:03:43 +08:00
parent 750e77e8b1
commit e2859e9d68
2 changed files with 1 additions and 7 deletions

View File

@ -12,7 +12,7 @@ Fay数字人助理版是fay开源项目的重要分支专注于构建智能
灵聚NLP api(支持GPT3.5及多应用)b站"Fay数字人集成灵聚NLP api(支持GPT3.5及多应用)" 灵聚NLP api(支持GPT3.5及多应用)https://m.bilibili.com/video/BV1NW4y1D76a
集成本地唇型算法https://www.bilibili.com/video/BV1Zh4y1g7o7/?buvid=XXDD0B5DD6C43C070DF9E7E67930FC48B24DF&is_story_h5=false&mid=Pvwl%2Ft1ahPM726k1L4%2FnRA%3D%3D&plat_id=202&share_from=ugc&share_medium=android&share_plat=android&share_source=WEIXIN&share_tag=s_i&timestamp=1686926382&unique_k=Jdqazy3&up_id=2111554564 集成本地唇型算法https://www.bilibili.com/video/BV1Zh4y1g7o7/?buvid=XXDD0B5DD6C43C070DF9E7E67930FC48B24DF&is_story_h5=false&mid=Pvwl%2Ft1ahPM726k1L4%2FnRA%3D%3D&plat_id=202&share_from=ugc&share_medium=android&share_plat=android&share_source=WEIXIN&share_tag=s_i&timestamp=1686926382&unique_k=Jdqazy3&up_id=2111554564

View File

@ -12,8 +12,6 @@ key_ali_nls_key_secret = None
key_ali_nls_app_key = None key_ali_nls_app_key = None
key_ms_tts_key = None key_ms_tts_key = None
Key_ms_tts_region = None Key_ms_tts_region = None
key_xf_aiui_app_id = None
key_xf_aiui_api_key = None
key_xf_ltp_app_id = None key_xf_ltp_app_id = None
key_xf_ltp_api_key = None key_xf_ltp_api_key = None
key_ngrok_cc_id = None key_ngrok_cc_id = None
@ -36,8 +34,6 @@ def load_config():
global key_ali_nls_app_key global key_ali_nls_app_key
global key_ms_tts_key global key_ms_tts_key
global key_ms_tts_region global key_ms_tts_region
global key_xf_aiui_app_id
global key_xf_aiui_api_key
global key_xf_ltp_app_id global key_xf_ltp_app_id
global key_xf_ltp_api_key global key_xf_ltp_api_key
global key_ngrok_cc_id global key_ngrok_cc_id
@ -61,8 +57,6 @@ def load_config():
key_ali_nls_app_key = system_config.get('key', 'ali_nls_app_key') key_ali_nls_app_key = system_config.get('key', 'ali_nls_app_key')
key_ms_tts_key = system_config.get('key', 'ms_tts_key') key_ms_tts_key = system_config.get('key', 'ms_tts_key')
key_ms_tts_region = system_config.get('key', 'ms_tts_region') key_ms_tts_region = system_config.get('key', 'ms_tts_region')
key_xf_aiui_app_id = system_config.get('key', 'xf_aiui_app_id')
key_xf_aiui_api_key = system_config.get('key', 'xf_aiui_api_key')
key_xf_ltp_app_id = system_config.get('key', 'xf_ltp_app_id') key_xf_ltp_app_id = system_config.get('key', 'xf_ltp_app_id')
key_xf_ltp_api_key = system_config.get('key', 'xf_ltp_api_key') key_xf_ltp_api_key = system_config.get('key', 'xf_ltp_api_key')
key_ngrok_cc_id = system_config.get('key', 'ngrok_cc_id') key_ngrok_cc_id = system_config.get('key', 'ngrok_cc_id')