Spaces:
Runtime error
Runtime error
Commit
·
16cf660
1
Parent(s):
a6affd6
login added
Browse files- ChatService.py +2 -0
ChatService.py
CHANGED
@@ -19,6 +19,8 @@ class ChatService:
|
|
19 |
gpu_count = torch.cuda.device_count()
|
20 |
print('gpu_count', gpu_count)
|
21 |
|
|
|
|
|
22 |
tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
|
23 |
pipeline = transformers.pipeline(
|
24 |
task="text-generation",
|
|
|
19 |
gpu_count = torch.cuda.device_count()
|
20 |
print('gpu_count', gpu_count)
|
21 |
|
22 |
+
login(os.environ["HF_TOKEN"])
|
23 |
+
|
24 |
tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
|
25 |
pipeline = transformers.pipeline(
|
26 |
task="text-generation",
|