yellowcandle commited on
Commit
27fbf39
1 Parent(s): 4b18df1

Revert "fixed typo"

Browse files

This reverts commit b99929d604a2be824f1930371b8a3e930de81e9b.

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