fariliang commited on
Commit
903d602
1 Parent(s): 92d25ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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().cuda()
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"""