UP
This commit is contained in:
		
							parent
							
								
									dd47c0a284
								
							
						
					
					
						commit
						ce9eb8d20a
					
				@ -306,7 +306,7 @@ gpt_academic开发者QQ群-2:610599535
 | 
			
		||||
 | 
			
		||||
### III:主题
 | 
			
		||||
 | 
			
		||||
1. `Chuanhu-Keldos-Green` [网址](https://github.com/GaiZhenbiao/ChuanhuChatGPT/)
 | 
			
		||||
1. `Chuanhu-Small-and-Beautiful` [网址](https://github.com/GaiZhenbiao/ChuanhuChatGPT/)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### IV:参考与学习
 | 
			
		||||
 | 
			
		||||
@ -85,7 +85,7 @@ CONCURRENT_COUNT = 100
 | 
			
		||||
# 是否在提交时自动清空输入框
 | 
			
		||||
AUTO_CLEAR_TXT = False
 | 
			
		||||
 | 
			
		||||
# 色彩主体,可选 ["Default", "Chuanhu-Keldos-Green"]
 | 
			
		||||
# 色彩主体,可选 ["Default", "Chuanhu-Small-and-Beautiful"]
 | 
			
		||||
THEME = "Default"
 | 
			
		||||
 | 
			
		||||
# 加一个live2d装饰
 | 
			
		||||
@ -124,6 +124,6 @@ put your new bing cookies here
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# 阿里云实时语音识别 配置门槛较高 限高级用户使用 参考 https://help.aliyun.com/document_detail/450255.html
 | 
			
		||||
ENABLE_AUDIO = True
 | 
			
		||||
ENABLE_AUDIO = False
 | 
			
		||||
ALIYUN_TOKEN=""    # 例如 f37f30e0f9934c34a992f6f64f7eba4f
 | 
			
		||||
ALIYUN_APPKEY=""   # 例如 RoPlZrM88DnAFkZK
 | 
			
		||||
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							@ -16,7 +16,7 @@ def main():
 | 
			
		||||
    from check_proxy import get_current_version
 | 
			
		||||
    from theme.theme import adjust_theme, advanced_css, theme_declaration
 | 
			
		||||
    initial_prompt = "Serve me as a writing and programming assistant."
 | 
			
		||||
    title_html = f"<h1 align=\"center\">GPT 学术优化 {get_current_version()}{theme_declaration}</h1>"
 | 
			
		||||
    title_html = f"<h1 align=\"center\">GPT 学术优化 {get_current_version()}</h1><h2 align=\"center\"  class=\"small\">{theme_declaration}</h2>"
 | 
			
		||||
    description =  """代码开源和更新[地址🚀](https://github.com/binary-husky/chatgpt_academic),感谢热情的[开发者们❤️](https://github.com/binary-husky/chatgpt_academic/graphs/contributors)"""
 | 
			
		||||
 | 
			
		||||
    # 问询记录, python 版本建议3.9+(越新越好)
 | 
			
		||||
 | 
			
		||||
@ -2,9 +2,9 @@ import gradio as gr
 | 
			
		||||
from toolbox import get_conf
 | 
			
		||||
THEME, = get_conf('THEME')
 | 
			
		||||
 | 
			
		||||
if THEME == 'Chuanhu-Keldos-Green':
 | 
			
		||||
if THEME == 'Chuanhu-Small-and-Beautiful':
 | 
			
		||||
    from .green import adjust_theme, advanced_css
 | 
			
		||||
    theme_declaration = "\t" + "[Chuanhu-Keldos暗绿主题]"
 | 
			
		||||
    theme_declaration = "\t" + "<smaller>[Chuanhu-Small-and-Beautiful主题]</smaller>"
 | 
			
		||||
else:
 | 
			
		||||
    from .default import adjust_theme, advanced_css
 | 
			
		||||
    theme_declaration = ""
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user