Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,12 @@ model_file_path = "chatglm2-ggml-q4_0.bin"
|
|
6 |
chatglm_llm = chatglm_cpp.Pipeline(Path(model_file_path))
|
7 |
|
8 |
examples = [
|
|
|
|
|
9 |
"如何弘扬中华传统文化?",
|
10 |
"How to promote Chinese traditional culture ?",
|
11 |
-
"如何学好历史?",
|
12 |
-
"写一段孔子与马克思的对话录。",
|
13 |
"如何进行经济建设?",
|
|
|
14 |
]
|
15 |
|
16 |
def process_stream(instruction, temperature, top_p, top_k, max_new_tokens, seed):
|
|
|
6 |
chatglm_llm = chatglm_cpp.Pipeline(Path(model_file_path))
|
7 |
|
8 |
examples = [
|
9 |
+
"苹果设备购买apple care有什么好处?",
|
10 |
+
"如何学好历史?",
|
11 |
"如何弘扬中华传统文化?",
|
12 |
"How to promote Chinese traditional culture ?",
|
|
|
|
|
13 |
"如何进行经济建设?",
|
14 |
+
"写一段孔子与马克思的对话录。",
|
15 |
]
|
16 |
|
17 |
def process_stream(instruction, temperature, top_p, top_k, max_new_tokens, seed):
|