Spaces:
Running
on
Zero
Running
on
Zero
removed brackets?!
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def no_op_decorator(func):
|
|
114 |
# #duration=120
|
115 |
|
116 |
# @decorator_to_use
|
117 |
-
@spaces.GPU
|
118 |
def create_embeddings(texts_to_embedd):
|
119 |
"""Create embeddings for the input texts using the loaded model."""
|
120 |
return model.encode(texts_to_embedd, show_progress_bar=True, batch_size=192)
|
|
|
114 |
# #duration=120
|
115 |
|
116 |
# @decorator_to_use
|
117 |
+
@spaces.GPU
|
118 |
def create_embeddings(texts_to_embedd):
|
119 |
"""Create embeddings for the input texts using the loaded model."""
|
120 |
return model.encode(texts_to_embedd, show_progress_bar=True, batch_size=192)
|