Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1112,16 +1112,7 @@ with gr.Blocks(title="🐰Bofan Ai🐰", theme=gr.themes.Soft(text_size="sm")) a
|
|
1112 |
with gr.Row():
|
1113 |
fitnessAskBtn = gr.Button("🥼健康咨询", variant="primary")
|
1114 |
mindAskBtn = gr.Button("😶🌫️心理咨询", variant="primary")
|
1115 |
-
GGSearchBtn = gr.Button("🐞联网搜索", variant="primary")
|
1116 |
-
|
1117 |
-
|
1118 |
-
with gr.Row():
|
1119 |
-
openOutlineBtn = gr.Button("小说提纲", variant="primary")
|
1120 |
-
mxOutlineBtn = gr.Button("冒险小说提纲", variant="secondary")
|
1121 |
-
khOutlineBtn = gr.Button("科幻小说提纲", variant="secondary")
|
1122 |
-
xxOutlineBtn = gr.Button("仙侠小说提纲", variant="secondary")
|
1123 |
-
chapterExtensionBtn = gr.Button("请复制要扩写的章节的内容", variant="secondary")
|
1124 |
-
|
1125 |
with gr.Column(scale=1):
|
1126 |
gr.HTML("""<h3 align="center">🍀您好,除健康咨询和心理咨询外,其它功能使用前,请先清空历史,并输入问题。🍀</h3>""")
|
1127 |
emptyBtn = gr.Button("清空对话Clear History")
|
@@ -1140,7 +1131,13 @@ with gr.Blocks(title="🐰Bofan Ai🐰", theme=gr.themes.Soft(text_size="sm")) a
|
|
1140 |
0.01, 1, value=0.85, step=0.01, label="Temperature", interactive=True
|
1141 |
)
|
1142 |
gr.HTML("""<h3 align="center">🍀健康和心理咨询请先点击,再输入问题。<a href="https://huggingface.co/fb700/chatglm-fitness-RLHF">模型由🐰帛凡基于chatglm-6微调</a>🍀</h3>""")
|
1143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1144 |
history = gr.State([])
|
1145 |
past_key_values = gr.State(None)
|
1146 |
|
|
|
1112 |
with gr.Row():
|
1113 |
fitnessAskBtn = gr.Button("🥼健康咨询", variant="primary")
|
1114 |
mindAskBtn = gr.Button("😶🌫️心理咨询", variant="primary")
|
1115 |
+
GGSearchBtn = gr.Button("🐞联网搜索", variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1116 |
with gr.Column(scale=1):
|
1117 |
gr.HTML("""<h3 align="center">🍀您好,除健康咨询和心理咨询外,其它功能使用前,请先清空历史,并输入问题。🍀</h3>""")
|
1118 |
emptyBtn = gr.Button("清空对话Clear History")
|
|
|
1131 |
0.01, 1, value=0.85, step=0.01, label="Temperature", interactive=True
|
1132 |
)
|
1133 |
gr.HTML("""<h3 align="center">🍀健康和心理咨询请先点击,再输入问题。<a href="https://huggingface.co/fb700/chatglm-fitness-RLHF">模型由🐰帛凡基于chatglm-6微调</a>🍀</h3>""")
|
1134 |
+
with gr.Row():
|
1135 |
+
openOutlineBtn = gr.Button("小说提纲", variant="primary")
|
1136 |
+
mxOutlineBtn = gr.Button("冒险小说提纲", variant="secondary")
|
1137 |
+
khOutlineBtn = gr.Button("科幻小说提纲", variant="secondary")
|
1138 |
+
xxOutlineBtn = gr.Button("仙侠小说提纲", variant="secondary")
|
1139 |
+
chapterExtensionBtn = gr.Button("请复制要扩写的章节的内容", variant="secondary")
|
1140 |
+
|
1141 |
history = gr.State([])
|
1142 |
past_key_values = gr.State(None)
|
1143 |
|