yellowcandle commited on
Commit
8e2fde3
·
unverified ·
1 Parent(s): bab5632

changed the prompt to be more specific

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def proofread(text):
46
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
47
 
48
  messages = [
49
- {"role": "system", "content": "用繁體中文整理這段文字,在最後加上整段文字的重點。"},
50
  {"role": "user", "content": text},
51
  ]
52
  pipe = pipeline("text-generation", model="hfl/llama-3-chinese-8b-instruct-v3")
 
46
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
47
 
48
  messages = [
49
+ {"role": "system", "content": "用繁體中文語體文整理這段文字,在最後加上整段文字的重點。"},
50
  {"role": "user", "content": text},
51
  ]
52
  pipe = pipeline("text-generation", model="hfl/llama-3-chinese-8b-instruct-v3")