johngiorgi commited on
Commit
7628538
1 Parent(s): c77ea61

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -19,13 +19,13 @@ from scipy.spatial.distance import cosine
19
  from transformers import AutoModel, AutoTokenizer
20
 
21
  # Load the model
22
- tokenizer = AutoTokenizer.from_pretrained("johngiorgi/declutr-base")
23
- model = AutoModel.from_pretrained("johngiorgi/declutr-base")
24
 
25
  # Prepare some text to embed
26
  text = [
27
- "A smiling costumed woman is holding an umbrella.",
28
- "A happy woman in a fairy costume holds an umbrella.",
29
  ]
30
  inputs = tokenizer(text, padding=True, truncation=True, return_tensors="pt")
31
 
 
19
  from transformers import AutoModel, AutoTokenizer
20
 
21
  # Load the model
22
+ tokenizer = AutoTokenizer.from_pretrained("johngiorgi/declutr-sci-base")
23
+ model = AutoModel.from_pretrained("johngiorgi/declutr-sci-base")
24
 
25
  # Prepare some text to embed
26
  text = [
27
+ "Oncogenic KRAS mutations are common in cancer.",
28
+ "Notably, c-Raf has recently been found essential for development of K-Ras-driven NSCLCs.",
29
  ]
30
  inputs = tokenizer(text, padding=True, truncation=True, return_tensors="pt")
31