Spaces:
Runtime error
Runtime error
rev app
Browse files
app.py
CHANGED
@@ -109,9 +109,14 @@ def load_model():
|
|
109 |
import torch
|
110 |
|
111 |
print("กำลังโหลด tokenizer...")
|
|
|
|
|
|
|
|
|
112 |
tokenizer = AutoTokenizer.from_pretrained(
|
113 |
-
"
|
114 |
-
trust_remote_code=True
|
|
|
115 |
)
|
116 |
|
117 |
print(f"2. ประเภทของ tokenizer: {type(tokenizer)}")
|
|
|
109 |
import torch
|
110 |
|
111 |
print("กำลังโหลด tokenizer...")
|
112 |
+
# tokenizer = AutoTokenizer.from_pretrained(
|
113 |
+
# "unsloth/Llama-3.2-11B-Vision-Instruct",
|
114 |
+
# trust_remote_code=True
|
115 |
+
# )
|
116 |
tokenizer = AutoTokenizer.from_pretrained(
|
117 |
+
"meta-llama/Llama-3.2-11B-Vision-Instruct",
|
118 |
+
trust_remote_code=True,
|
119 |
+
use_auth_token=True
|
120 |
)
|
121 |
|
122 |
print(f"2. ประเภทของ tokenizer: {type(tokenizer)}")
|