Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -114,7 +114,7 @@ class EndpointHandler():
|
|
| 114 |
elapsed = time.perf_counter() - start
|
| 115 |
print(f"Model loaded in {elapsed:.2f}s")
|
| 116 |
self.tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|
| 117 |
-
self.labels = ["High", "
|
| 118 |
print("Compiling model...")
|
| 119 |
start = time.perf_counter()
|
| 120 |
self.model.compile()
|
|
|
|
| 114 |
elapsed = time.perf_counter() - start
|
| 115 |
print(f"Model loaded in {elapsed:.2f}s")
|
| 116 |
self.tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|
| 117 |
+
self.labels = ["High", "Latent", "Medium", "None"] # Update based on your dataset
|
| 118 |
print("Compiling model...")
|
| 119 |
start = time.perf_counter()
|
| 120 |
self.model.compile()
|