小而美
This commit is contained in:
parent
4fde0120ab
commit
acddb86f3a
@ -123,7 +123,7 @@ put your new bing cookies here
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
# 阿里云实时语音识别 配置门槛较高 限高级用户使用 参考 https://help.aliyun.com/document_detail/450255.html
|
# 阿里云实时语音识别 配置难度较高 仅建议高手用户使用 参考 https://help.aliyun.com/document_detail/450255.html
|
||||||
ENABLE_AUDIO = False
|
ENABLE_AUDIO = False
|
||||||
ALIYUN_TOKEN="" # 例如 f37f30e0f9934c34a992f6f64f7eba4f
|
ALIYUN_TOKEN="" # 例如 f37f30e0f9934c34a992f6f64f7eba4f
|
||||||
ALIYUN_APPKEY="" # 例如 RoPlZrM88DnAFkZK
|
ALIYUN_APPKEY="" # 例如 RoPlZrM88DnAFkZK
|
@ -418,6 +418,9 @@ def get_crazy_functions():
|
|||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
from toolbox import get_conf
|
||||||
|
ENABLE_AUDIO, = get_conf('ENABLE_AUDIO')
|
||||||
|
if ENABLE_AUDIO:
|
||||||
from crazy_functions.语音助手 import 语音助手
|
from crazy_functions.语音助手 import 语音助手
|
||||||
function_plugins.update({
|
function_plugins.update({
|
||||||
"实时音频采集": {
|
"实时音频采集": {
|
||||||
|
2
main.py
2
main.py
@ -16,7 +16,7 @@ def main():
|
|||||||
from check_proxy import get_current_version
|
from check_proxy import get_current_version
|
||||||
from theme.theme import adjust_theme, advanced_css, theme_declaration
|
from theme.theme import adjust_theme, advanced_css, theme_declaration
|
||||||
initial_prompt = "Serve me as a writing and programming assistant."
|
initial_prompt = "Serve me as a writing and programming assistant."
|
||||||
title_html = f"<h1 align=\"center\">GPT 学术优化 {get_current_version()}</h1><h2 align=\"center\" class=\"small\">{theme_declaration}</h2>"
|
title_html = f"<h1 align=\"center\">GPT 学术优化 {get_current_version()}</h1>{theme_declaration}"
|
||||||
description = """代码开源和更新[地址🚀](https://github.com/binary-husky/chatgpt_academic),感谢热情的[开发者们❤️](https://github.com/binary-husky/chatgpt_academic/graphs/contributors)"""
|
description = """代码开源和更新[地址🚀](https://github.com/binary-husky/chatgpt_academic),感谢热情的[开发者们❤️](https://github.com/binary-husky/chatgpt_academic/graphs/contributors)"""
|
||||||
|
|
||||||
# 问询记录, python 版本建议3.9+(越新越好)
|
# 问询记录, python 版本建议3.9+(越新越好)
|
||||||
|
@ -4,7 +4,7 @@ THEME, = get_conf('THEME')
|
|||||||
|
|
||||||
if THEME == 'Chuanhu-Small-and-Beautiful':
|
if THEME == 'Chuanhu-Small-and-Beautiful':
|
||||||
from .green import adjust_theme, advanced_css
|
from .green import adjust_theme, advanced_css
|
||||||
theme_declaration = "\t" + "<smaller>[Chuanhu-Small-and-Beautiful主题]</smaller>"
|
theme_declaration = "<h2 align=\"center\" class=\"small\">[Chuanhu-Small-and-Beautiful主题]</h2>"
|
||||||
else:
|
else:
|
||||||
from .default import adjust_theme, advanced_css
|
from .default import adjust_theme, advanced_css
|
||||||
theme_declaration = ""
|
theme_declaration = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user