Spaces:
Runtime error
Runtime error
Update app.py
Browse filesfrom transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("bert-base-chinese")
model = AutoModelForMaskedLM.from_pretrained("bert-base-chinese")
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()
|
|