微调HTML汇报样式
This commit is contained in:
parent
a6e7bbbd22
commit
4305ee0313
@ -24,17 +24,17 @@ class construct_html():
|
|||||||
"""
|
"""
|
||||||
template_ = template
|
template_ = template
|
||||||
if len(a.split('\n')) == 1:
|
if len(a.split('\n')) == 1:
|
||||||
template_ = template_.replace("__PRIMARY_HEADER__", markdown_convertion(a[:10]) + ' ...')
|
template_ = template_.replace("__PRIMARY_HEADER__", a[:20])
|
||||||
template_ = template_.replace("__PRIMARY_MSG__", markdown_convertion(a))
|
template_ = template_.replace("__PRIMARY_MSG__", markdown_convertion(a))
|
||||||
else:
|
else:
|
||||||
template_ = template_.replace("__PRIMARY_HEADER__", markdown_convertion(a.split('\n')[0]))
|
template_ = template_.replace("__PRIMARY_HEADER__", a.split('\n')[0])
|
||||||
template_ = template_.replace("__PRIMARY_MSG__", markdown_convertion('\n'.join(a.split('\n')[1:])))
|
template_ = template_.replace("__PRIMARY_MSG__", markdown_convertion('\n'.join(a.split('\n')[1:])))
|
||||||
|
|
||||||
if len(b.split('\n')) == 1:
|
if len(b.split('\n')) == 1:
|
||||||
template_ = template_.replace("__SECONDARY_HEADER__", markdown_convertion(b[:10]) + ' ...')
|
template_ = template_.replace("__SECONDARY_HEADER__", b[:20])
|
||||||
template_ = template_.replace("__SECONDARY_MSG__", markdown_convertion(b))
|
template_ = template_.replace("__SECONDARY_MSG__", markdown_convertion(b))
|
||||||
else:
|
else:
|
||||||
template_ = template_.replace("__SECONDARY_HEADER__", markdown_convertion(b.split('\n')[0]))
|
template_ = template_.replace("__SECONDARY_HEADER__", b.split('\n')[0])
|
||||||
template_ = template_.replace("__SECONDARY_MSG__", markdown_convertion('\n'.join(b.split('\n')[1:])))
|
template_ = template_.replace("__SECONDARY_MSG__", markdown_convertion('\n'.join(b.split('\n')[1:])))
|
||||||
self.html_string += template_
|
self.html_string += template_
|
||||||
|
|
||||||
|
4
version
4
version
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": 3.55,
|
"version": 3.56,
|
||||||
"show_feature": true,
|
"show_feature": true,
|
||||||
"new_feature": "重新编译Gradio优化使用体验 <-> 新增动态代码解释器(CodeInterpreter) <-> 增加文本回答复制按钮 <-> 细分代理场合 <-> 支持动态选择不同界面主题 <-> 提高稳定性&解决多用户冲突问题 <-> 支持插件分类和更多UI皮肤外观 <-> 支持用户使用自然语言调度各个插件(虚空终端) ! <-> 改进UI,设计新主题 <-> 支持借助GROBID实现PDF高精度翻译 <-> 接入百度千帆平台和文心一言 <-> 接入阿里通义千问、讯飞星火、上海AI-Lab书生 <-> 优化一键升级 <-> 提高arxiv翻译速度和成功率"
|
"new_feature": "支持动态追加基础功能按钮 <-> 新汇报PDF汇总页面 <-> 重新编译Gradio优化使用体验 <-> 新增动态代码解释器(CodeInterpreter) <-> 增加文本回答复制按钮 <-> 细分代理场合 <-> 支持动态选择不同界面主题 <-> 提高稳定性&解决多用户冲突问题 <-> 支持插件分类和更多UI皮肤外观 <-> 支持用户使用自然语言调度各个插件(虚空终端) ! <-> 改进UI,设计新主题 <-> 支持借助GROBID实现PDF高精度翻译 <-> 接入百度千帆平台和文心一言 <-> 接入阿里通义千问、讯飞星火、上海AI-Lab书生 <-> 优化一键升级 <-> 提高arxiv翻译速度和成功率"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user