Spaces:
Sleeping
Sleeping
fix: model_name
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ app.add_middleware(
|
|
24 |
)
|
25 |
|
26 |
# 初始化模型
|
27 |
-
model_name = "
|
28 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
29 |
|
30 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
|
|
24 |
)
|
25 |
|
26 |
# 初始化模型
|
27 |
+
model_name = "Mageia/GOT-OCR2_0"
|
28 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
29 |
|
30 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|