Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import mdtex2html
|
|
5 |
import os
|
6 |
|
7 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b-int4-qe", trust_remote_code=True)
|
8 |
-
model = AutoModel.from_pretrained("THUDM/chatglm-6b-int4-qe", trust_remote_code=True).half()
|
9 |
model = model.eval()
|
10 |
|
11 |
"""Override Chatbot.postprocess"""
|
|
|
5 |
import os
|
6 |
|
7 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b-int4-qe", trust_remote_code=True)
|
8 |
+
model = AutoModel.from_pretrained("THUDM/chatglm-6b-int4-qe", trust_remote_code=True).half()
|
9 |
model = model.eval()
|
10 |
|
11 |
"""Override Chatbot.postprocess"""
|