Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import torch
|
|
| 3 |
|
| 4 |
model_path = "tosei0000/code"
|
| 5 |
|
| 6 |
-
# 加载模型和分词器
|
| 7 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
| 8 |
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True)
|
| 9 |
|
|
|
|
| 3 |
|
| 4 |
model_path = "tosei0000/code"
|
| 5 |
|
|
|
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
| 7 |
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True)
|
| 8 |
|