Testing with Disabling gpu_zero
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def cls_pooling(model_output):
|
|
| 31 |
return model_output[0][:, 0]
|
| 32 |
|
| 33 |
|
| 34 |
-
@spaces.GPU
|
| 35 |
def get_embedding(text, use_mean_pooling, model_id):
|
| 36 |
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
|
|
| 31 |
return model_output[0][:, 0]
|
| 32 |
|
| 33 |
|
| 34 |
+
# @spaces.GPU
|
| 35 |
def get_embedding(text, use_mean_pooling, model_id):
|
| 36 |
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|