Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,15 @@ model_file_path = "chatglm3-ggml_q4_0.bin"
|
|
6 |
chatglm_llm = chatglm_cpp.Pipeline(Path(model_file_path))
|
7 |
|
8 |
examples = [
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
14 |
]
|
15 |
|
|
|
16 |
def process_stream(instruction, temperature, top_p, top_k, max_new_tokens, seed):
|
17 |
if "[SEP]" not in instruction:
|
18 |
streamer = chatglm_llm.generate(prompt=instruction,
|
|
|
6 |
chatglm_llm = chatglm_cpp.Pipeline(Path(model_file_path))
|
7 |
|
8 |
examples = [
|
9 |
+
"哈利波特和赫敏是什么关系?",
|
10 |
+
"如何学好历史?",
|
11 |
+
"明朝内阁制度的特点是什么?",
|
12 |
+
"如何进行经济建设?",
|
13 |
+
"How to promote Chinese traditional culture ?",
|
14 |
+
"你听说过马克思吗?",
|
15 |
]
|
16 |
|
17 |
+
|
18 |
def process_stream(instruction, temperature, top_p, top_k, max_new_tokens, seed):
|
19 |
if "[SEP]" not in instruction:
|
20 |
streamer = chatglm_llm.generate(prompt=instruction,
|