Spaces:
Sleeping
Sleeping
yellowcandle
commited on
changed the prompt to be more specific
Browse files
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")
|