taining commited on
Commit
f43b9fd
1 Parent(s): 90242d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,4 +1,8 @@
 
1
 
 
 
 
2
 
3
  def predict(input, history=[]):
4
  # tokenize the new input sentence
 
1
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
2
 
3
+ tokenizer=AutoTokenizer.from_pretrained("bert-base-chinese")
4
+
5
+ model=AutoModelForMaskedLM.from_pretrained("bert-base-chinese")
6
 
7
  def predict(input, history=[]):
8
  # tokenize the new input sentence