Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -887,8 +887,7 @@ def stop_criteria(sent, min_sub_len = 4):
|
|
887 |
return "stop"
|
888 |
return "continue"
|
889 |
|
890 |
-
#model_file_path = "
|
891 |
-
#model_file_path = "chatglm3-base-inst-6500-sm-ggml.bin"
|
892 |
model_file_path = "genshin_impact_character_glm6b_base_ggml/chatglm3-base-inst-6500-sm-ggml.bin"
|
893 |
print("load {}".format(model_file_path))
|
894 |
chatglm_llm = chatglm_cpp.Pipeline(Path(model_file_path))
|
@@ -1190,7 +1189,7 @@ with gr.Blocks() as demo:
|
|
1190 |
two_output = gr.Text(label = "角色间看法结果", info = "可编辑", lines = 2, scale = 5.0)
|
1191 |
|
1192 |
with gr.Row():
|
1193 |
-
gen_times = gr.Slider(1, 10, value=
|
1194 |
max_length = gr.Slider(0, 32768, value=512, step=1.0, label="Maximum length", interactive=True)
|
1195 |
top_p = gr.Slider(0, 1, value=0.8, step=0.01, label="Top P", interactive=True)
|
1196 |
temperature = gr.Slider(0.01, 1, value=0.6, step=0.01, label="Temperature", interactive=True)
|
@@ -1217,7 +1216,7 @@ with gr.Blocks() as demo:
|
|
1217 |
["这里推荐从左面选择:魈" ,"聊天", "美味的杏仁豆腐"],
|
1218 |
["这里推荐从左面选择:凝光" ,"时候", "品尝璃月香茗"],
|
1219 |
["这里推荐从左面选择:可莉" ,"关于", "如何制造蹦蹦炸弹"],
|
1220 |
-
["
|
1221 |
["这里推荐从左面选择:北斗" ,"了解", ""],
|
1222 |
],
|
1223 |
inputs = [single_name ,select_task, Text],
|
|
|
887 |
return "stop"
|
888 |
return "continue"
|
889 |
|
890 |
+
#model_file_path = "genshin_impact_character_glm6b_base_ggml/chatglm3-base-inst-7500-sm-ggml.bin"
|
|
|
891 |
model_file_path = "genshin_impact_character_glm6b_base_ggml/chatglm3-base-inst-6500-sm-ggml.bin"
|
892 |
print("load {}".format(model_file_path))
|
893 |
chatglm_llm = chatglm_cpp.Pipeline(Path(model_file_path))
|
|
|
1189 |
two_output = gr.Text(label = "角色间看法结果", info = "可编辑", lines = 2, scale = 5.0)
|
1190 |
|
1191 |
with gr.Row():
|
1192 |
+
gen_times = gr.Slider(1, 10, value=10, step=1.0, label="Generate Num", interactive=True)
|
1193 |
max_length = gr.Slider(0, 32768, value=512, step=1.0, label="Maximum length", interactive=True)
|
1194 |
top_p = gr.Slider(0, 1, value=0.8, step=0.01, label="Top P", interactive=True)
|
1195 |
temperature = gr.Slider(0.01, 1, value=0.6, step=0.01, label="Temperature", interactive=True)
|
|
|
1216 |
["这里推荐从左面选择:魈" ,"聊天", "美味的杏仁豆腐"],
|
1217 |
["这里推荐从左面选择:凝光" ,"时候", "品尝璃月香茗"],
|
1218 |
["这里推荐从左面选择:可莉" ,"关于", "如何制造蹦蹦炸弹"],
|
1219 |
+
["这里推荐从左面选择:北斗" ,"故事", "一天行秋在绝云间练剑。"],
|
1220 |
["这里推荐从左面选择:北斗" ,"了解", ""],
|
1221 |
],
|
1222 |
inputs = [single_name ,select_task, Text],
|