Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ dense_model = SentenceTransformer(
|
|
24 |
)
|
25 |
sparse_model_id = 'naver/splade-cocondenser-ensembledistil'
|
26 |
sparse_model = Splade(sparse_model_id, agg='max')
|
27 |
-
sparse_model.to(device) #
|
28 |
sparse_model.eval()
|
29 |
|
30 |
tokenizer = AutoTokenizer.from_pretrained(sparse_model_id)
|
|
|
24 |
)
|
25 |
sparse_model_id = 'naver/splade-cocondenser-ensembledistil'
|
26 |
sparse_model = Splade(sparse_model_id, agg='max')
|
27 |
+
sparse_model.to(device) # moves to GPU if possible
|
28 |
sparse_model.eval()
|
29 |
|
30 |
tokenizer = AutoTokenizer.from_pretrained(sparse_model_id)
|