Update README.md
Browse files
README.md
CHANGED
@@ -28,9 +28,9 @@ from huggingface_hub import login
|
|
28 |
login("Replace with the key")
|
29 |
```
|
30 |
|
31 |
-
# Step 2: Define the preprocessing and dataset
|
32 |
|
33 |
-
|
34 |
|
35 |
```python
|
36 |
class NewsDataset(Dataset):
|
@@ -135,24 +135,6 @@ print(f"Test Accuracy: {accuracy:.4f}")
|
|
135 |
# Expected output:
|
136 |
```python
|
137 |
Loading model and tokenizer...
|
138 |
-
/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_auth.py:94: UserWarning:
|
139 |
-
The secret `HF_TOKEN` does not exist in your Colab secrets.
|
140 |
-
To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.
|
141 |
-
You will be able to reuse this secret in all of your notebooks.
|
142 |
-
Please note that authentication is recommended but still optional to access public models or datasets.
|
143 |
-
warnings.warn(
|
144 |
-
config.json:β100%
|
145 |
-
β735/735β[00:00<00:00,β40.8kB/s]
|
146 |
-
model.safetensors:β100%
|
147 |
-
β499M/499Mβ[00:11<00:00,β42.7MB/s]
|
148 |
-
tokenizer_config.json:β100%
|
149 |
-
β1.19k/1.19kβ[00:00<00:00,β69.8kB/s]
|
150 |
-
vocab.json:β100%
|
151 |
-
β999k/999kβ[00:00<00:00,β4.09MB/s]
|
152 |
-
merges.txt:β100%
|
153 |
-
β456k/456kβ[00:00<00:00,β2.61MB/s]
|
154 |
-
special_tokens_map.json:β100%
|
155 |
-
β958/958β[00:00<00:00,β57.4kB/s]
|
156 |
Model and tokenizer loaded successfully!
|
157 |
Loading test data...
|
158 |
Evaluating the model...
|
|
|
28 |
login("Replace with the key")
|
29 |
```
|
30 |
|
31 |
+
# Step 2: Define the preprocessing and dataset clas
|
32 |
|
33 |
+
Run the following class and functions designed to preprocess the test data
|
34 |
|
35 |
```python
|
36 |
class NewsDataset(Dataset):
|
|
|
135 |
# Expected output:
|
136 |
```python
|
137 |
Loading model and tokenizer...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
Model and tokenizer loaded successfully!
|
139 |
Loading test data...
|
140 |
Evaluating the model...
|