Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,12 +19,10 @@ print("π Authenticating with Hugging Face...")
|
|
19 |
|
20 |
# β
Load the model with authentication
|
21 |
model = BertForSequenceClassification.from_pretrained(
|
22 |
-
MODEL_PATH
|
23 |
-
token=HF_API_KEY # Explicit authentication
|
24 |
)
|
25 |
tokenizer = AutoTokenizer.from_pretrained(
|
26 |
-
MODEL_PATH
|
27 |
-
token=HF_API_KEY # Explicit authentication
|
28 |
)
|
29 |
|
30 |
print("β
Model Loaded Successfully!")
|
|
|
19 |
|
20 |
# β
Load the model with authentication
|
21 |
model = BertForSequenceClassification.from_pretrained(
|
22 |
+
MODEL_PATH
|
|
|
23 |
)
|
24 |
tokenizer = AutoTokenizer.from_pretrained(
|
25 |
+
MODEL_PATH
|
|
|
26 |
)
|
27 |
|
28 |
print("β
Model Loaded Successfully!")
|