aps6992 commited on
Commit
5ef93ab
1 Parent(s): c9bef72

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -134,7 +134,7 @@ query = ["Bidirectional transformers"]
134
  query_embedding = embed_input(query)
135
 
136
  #load the proximity adapter, provide an identifier for the adapter in load_as argument and activate it
137
- model.load_adapter("allenai/specter2_proximity", source="hf", load_as="specter2", set_active=True)
138
  papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
139
  {'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]
140
  # concatenate title and abstract
 
134
  query_embedding = embed_input(query)
135
 
136
  #load the proximity adapter, provide an identifier for the adapter in load_as argument and activate it
137
+ model.load_adapter("allenai/specter2", source="hf", load_as="specter2_proximity", set_active=True)
138
  papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
139
  {'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]
140
  # concatenate title and abstract