binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
64.96k stars 8.02k forks source link

最新暗黑色主题界面如何配置? #173

Closed substitute5 closed 1 year ago

substitute5 commented 1 year ago

我拉取了最新的代码运行,界面仍旧是之前的风格,想要知道如何实现暗黑主题风格的配置,谢谢。

benlw commented 1 year ago

或许是系统/浏览器的效果, 代码里没有暗黑相关的设定

wangfeng35 commented 1 year ago

同是白的

ifyz commented 1 year ago

修改theme.py的30行 Gradio 带有一组预构建的主题: gr.themes.Base() gr.themes.Default() gr.themes.Glass() gr.themes.Monochrome() gr.themes.Soft()

houjie8888 commented 1 year ago

@ifyz 你好,预设的主题没有暗黑风格,请问如何修改让他变成暗黑风格呢,set_theme.set()中哪个属性是控制背景颜色的呀

binary-husky commented 1 year ago

我是把浏览器调节到暗色模式

在浏览器url后面添加/?__dark-theme=true可以切换dark主题

binary-husky commented 1 year ago

在浏览器url后面添加/?dark-theme=true可以切换dark主题 例如 http://localhost:7860 变成 http://localhost:7860/?theme=dark