justest commited on
Commit
f185d60
1 Parent(s): 2b1585c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  from transformers import AutoModel, AutoTokenizer
2
  import gradio as gr
3
  import json
4
- model_path = 'THUDM/chatglm-6b-int4'
5
  tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
6
  model = AutoModel.from_pretrained(model_path, trust_remote_code=True).half().float()
7
  model = model.eval()
 
1
  from transformers import AutoModel, AutoTokenizer
2
  import gradio as gr
3
  import json
4
+ model_path = 'THUDM/chatglm2-6b-int4'
5
  tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
6
  model = AutoModel.from_pretrained(model_path, trust_remote_code=True).half().float()
7
  model = model.eval()