Tong commited on
Commit
91bccac
·
1 Parent(s): 6dc1080

remove cuda

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def chat(text):
12
 
13
  if __name__ == '__main__':
14
  tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
15
- model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()
16
  model.eval()
17
  iface = gr.Interface(fn=chat, inputs="text", outputs="text")
18
  iface.launch()
 
12
 
13
  if __name__ == '__main__':
14
  tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
15
+ model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half()
16
  model.eval()
17
  iface = gr.Interface(fn=chat, inputs="text", outputs="text")
18
  iface.launch()