Finnone commited on
Commit
ff9397d
·
1 Parent(s): 1403a31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -1,7 +1,3 @@
1
- # 导入所需库
2
- from transformers import AutoModelForCausalLM, AutoTokenizer
3
- import gradio as gr
4
-
5
  # 加载模型和分词器
6
  checkpoint = "bigcode/santacoder"
7
  device = "cuda" # 若要使用GPU,请将其设置为"cuda",若使用CPU,请设置为"cpu"
 
 
 
 
 
1
  # 加载模型和分词器
2
  checkpoint = "bigcode/santacoder"
3
  device = "cuda" # 若要使用GPU,请将其设置为"cuda",若使用CPU,请设置为"cpu"