Spaces:
Running
Running
JoyceLiuZB
commited on
Commit
•
7fa0404
1
Parent(s):
6110b96
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import operator
|
|
9 |
import torch
|
10 |
from transformers import BertTokenizer, BertForMaskedLM
|
11 |
|
12 |
-
tokenizer = BertTokenizer.from_pretrained("shibing624/
|
13 |
-
model = BertForMaskedLM.from_pretrained("shibing624/
|
14 |
|
15 |
|
16 |
def ai_text(text):
|
|
|
9 |
import torch
|
10 |
from transformers import BertTokenizer, BertForMaskedLM
|
11 |
|
12 |
+
tokenizer = BertTokenizer.from_pretrained("shibing624/bart4csc-base-chinese")
|
13 |
+
model = BertForMaskedLM.from_pretrained("shibing624/bart4csc-base-chinese")
|
14 |
|
15 |
|
16 |
def ai_text(text):
|