Akshat1000 commited on
Commit
06f1120
·
verified ·
1 Parent(s): 71e5fa8

Update getans.py

Browse files
Files changed (1) hide show
  1. getans.py +4 -0
getans.py CHANGED
@@ -1,5 +1,9 @@
1
  import torch
2
  from transformers import AutoTokenizer, AutoModelForCausalLM
 
 
 
 
3
 
4
 
5
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
1
  import torch
2
  from transformers import AutoTokenizer, AutoModelForCausalLM
3
+ from huggingface_hub import login
4
+ token1="hf_"
5
+ token2="rPlNHzkJScHYmtGSaQPcaoKcjJGYQEpjLu"
6
+ login(token=token1+token2)
7
 
8
 
9
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")