MBear commited on
Commit
3e34a37
1 Parent(s): b348177
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModel
3
  tokenizer = AutoTokenizer.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True)
4
- model = AutoModel.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True, device='cuda')
5
  model = model.eval()
6
 
7
  def greet(prompt):
 
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModel
3
  tokenizer = AutoTokenizer.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True)
4
+ model = AutoModel.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True)
5
  model = model.eval()
6
 
7
  def greet(prompt):