Update custom_handler.py
Browse files- custom_handler.py +1 -0
custom_handler.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
2 |
import torch
|
3 |
|
|
|
4 |
class CustomHandler:
|
5 |
def __init__(self, model_name_or_path):
|
6 |
self.tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
|
|
|
1 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
2 |
import torch
|
3 |
|
4 |
+
model_name_or_path="alfaxadeyembe/gemma2-27b-swahili-it"
|
5 |
class CustomHandler:
|
6 |
def __init__(self, model_name_or_path):
|
7 |
self.tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
|