svjack commited on
Commit
4cf98c1
·
1 Parent(s): e028464

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
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
- "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):
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,