duxb commited on
Commit
020bf57
1 Parent(s): 90670b4

Update app.py

Browse files
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-qe'
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/chatglm-6b'
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()