GIGGeorg commited on
Commit
6fc7e9b
·
verified ·
1 Parent(s): 16fb4e7
Files changed (1) hide show
  1. requirements.txt +13 -0
requirements.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !pip install transformers
2
+ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline, logging
3
+ from huggingface_hub import notebook_login
4
+ notebook_login()
5
+ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline, logging
6
+
7
+ # Ignore warnings
8
+ logging.set_verbosity(logging.CRITICAL)
9
+
10
+ # Load the model and tokenizer with authentication token
11
+ model_name = "King-Harry/NinjaMasker-PII-Redaction"
12
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
13
+ model = AutoModelForCausalLM.from_pretrained(model_name)