Update app.py
Browse files
app.py
CHANGED
|
@@ -17,8 +17,8 @@ print(f"Loading model: {MODEL_ID}...")
|
|
| 17 |
try:
|
| 18 |
# Tokenizer can still be loaded automatically
|
| 19 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, token=HF_TOKEN, trust_remote_code=True)
|
| 20 |
-
|
| 21 |
-
model = AutoModelForSequenceClassification.from_pretrained(MODEL_ID, token=HF_TOKEN, trust_remote_code=True
|
| 22 |
|
| 23 |
# Move the model to the selected device
|
| 24 |
model.to(device)
|
|
|
|
| 17 |
try:
|
| 18 |
# Tokenizer can still be loaded automatically
|
| 19 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, token=HF_TOKEN, trust_remote_code=True)
|
| 20 |
+
|
| 21 |
+
model = AutoModelForSequenceClassification.from_pretrained(MODEL_ID, token=HF_TOKEN, trust_remote_code=True)
|
| 22 |
|
| 23 |
# Move the model to the selected device
|
| 24 |
model.to(device)
|