fb700 commited on
Commit
25f26cb
·
1 Parent(s): e1d93c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ from transformers import AutoModel, AutoTokenizer
2
  import gradio as gr
3
  import mdtex2html
4
 
5
- tokenizer = AutoTokenizer.from_pretrained("fb700/chatglm-fitness-RLHF/chatglm_rlhf", trust_remote_code=True)
6
- model = AutoModel.from_pretrained("fb700/chatglm-fitness-RLHF/chatglm_rlhf", trust_remote_code=True).quantize(8).half().cuda()
7
  model = model.eval()
8
 
9
  """Override Chatbot.postprocess"""
 
2
  import gradio as gr
3
  import mdtex2html
4
 
5
+ tokenizer = AutoTokenizer.from_pretrained("fb700/chatglm-fitness-RLHF", trust_remote_code=True)
6
+ model = AutoModel.from_pretrained("fb700/chatglm-fitness-RLHF", trust_remote_code=True).quantize(8).half().cuda()
7
  model = model.eval()
8
 
9
  """Override Chatbot.postprocess"""