ggbondqin commited on
Commit
5da46af
β€’
1 Parent(s): f4fcbd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -1,7 +1,6 @@
1
  from transformers import AutoModel, AutoTokenizer
2
  import gradio as gr
3
  import mdtex2html
4
- from utils import load_model_on_gpus
5
 
6
  tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)
7
  model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True).cuda()
 
1
  from transformers import AutoModel, AutoTokenizer
2
  import gradio as gr
3
  import mdtex2html
 
4
 
5
  tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)
6
  model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True).cuda()