Spaces:
Sleeping
Sleeping
yellowcandle
commited on
Commit
•
27fbf39
1
Parent(s):
4b18df1
Revert "fixed typo"
Browse filesThis reverts commit b99929d604a2be824f1930371b8a3e930de81e9b.
app.py
CHANGED
@@ -67,7 +67,7 @@ def proofread(text):
|
|
67 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
68 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
69 |
|
70 |
-
prompt = "
|
71 |
|
72 |
model = AutoModelForCausalLM.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|
73 |
tokenizer = AutoTokenizer.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|
|
|
67 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
68 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
69 |
|
70 |
+
prompt = "用繁體中文整理這段文字,在最後加上整段文字的重點。"
|
71 |
|
72 |
model = AutoModelForCausalLM.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|
73 |
tokenizer = AutoTokenizer.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|