taining commited on
Commit
3b7db98
1 Parent(s): df5b2b0

Update app.py

Browse files

from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer=AutoTokenizer.from_pretrained("bert-base-chinese")

model=AutoModelForMaskedLM.from_pretrained("bert-base-chinese")

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -26,3 +26,4 @@ gr.Interface(fn=predict,
26
  inputs=["text", "state"],
27
  outputs=["chatbot", "state"]).launch()
28
 
 
 
26
  inputs=["text", "state"],
27
  outputs=["chatbot", "state"]).launch()
28
 
29
+ %