taining commited on
Commit
2708433
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 +0 -1
app.py CHANGED
@@ -25,4 +25,3 @@ def predict(input, history=[]):
25
  gr.Interface(fn=predict,
26
  inputs=["text", "state"],
27
  outputs=["chatbot", "state"]).launch()
28
-
 
25
  gr.Interface(fn=predict,
26
  inputs=["text", "state"],
27
  outputs=["chatbot", "state"]).launch()