Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -23,7 +23,7 @@ gpu_id = 0
|
|
23 |
device = get_torch_device(gpu_id)
|
24 |
|
25 |
# load the model
|
26 |
-
model = HierarchyTransformer.load_pretrained('Hierarchy-Transformers/HiT-MiniLM-L12-WordNet')
|
27 |
|
28 |
# entity names to be encoded.
|
29 |
entity_names = ["computer", "personal computer", "fruit", "berry"]
|
|
|
23 |
device = get_torch_device(gpu_id)
|
24 |
|
25 |
# load the model
|
26 |
+
model = HierarchyTransformer.load_pretrained('Hierarchy-Transformers/HiT-MiniLM-L12-WordNet', device)
|
27 |
|
28 |
# entity names to be encoded.
|
29 |
entity_names = ["computer", "personal computer", "fruit", "berry"]
|