Spaces:
Runtime error
Runtime error
YukiKurosawaDev
commited on
Commit
β’
bac6c93
1
Parent(s):
671cdee
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import mdtex2html
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
|
6 |
-
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).
|
7 |
model = model.eval()
|
8 |
|
9 |
"""Override Chatbot.postprocess"""
|
|
|
3 |
import mdtex2html
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
|
6 |
+
model = AutoModel.from_pretrained("THUDM/chatglm-6b-int4", trust_remote_code=True).float()
|
7 |
model = model.eval()
|
8 |
|
9 |
"""Override Chatbot.postprocess"""
|