ls291 commited on
Commit
2a9178f
1 Parent(s): 3d8147c

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ from sentence_transformers import util
11
  from local_database import db_operate
12
  from prompt import table_schema, embedder,corpus_embeddings, corpus,In_context_prompt, query_template
13
 
14
- tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b-int8", trust_remote_code=True)
15
- model = AutoModel.from_pretrained("THUDM/chatglm-6b-int8",trust_remote_code=True).float()
16
  model = model.eval()
17
 
18
 
 
11
  from local_database import db_operate
12
  from prompt import table_schema, embedder,corpus_embeddings, corpus,In_context_prompt, query_template
13
 
14
+ tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b-int4", trust_remote_code=True)
15
+ model = AutoModel.from_pretrained("THUDM/chatglm-6b-int4",trust_remote_code=True).float()
16
  model = model.eval()
17
 
18