Spaces:
Sleeping
Sleeping
yellowcandle
commited on
Commit
•
b99929d
1
Parent(s):
5ad2f2b
fixed typo
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def proofread(text):
|
|
44 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
45 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
46 |
|
47 |
-
prompt = "
|
48 |
|
49 |
model = AutoModelForCausalLM.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|
50 |
tokenizer = AutoTokenizer.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|
|
|
44 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
45 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
46 |
|
47 |
+
prompt = "用繁體中文整理這段文字,分段及改正錯別字,最後加上整段文字的重點。"
|
48 |
|
49 |
model = AutoModelForCausalLM.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|
50 |
tokenizer = AutoTokenizer.from_pretrained("hfl/llama-3-chinese-8b-instruct-v3")
|