From 1dbf1c088376d7276a3ccd099ea8774f6d64f90e Mon Sep 17 00:00:00 2001 From: Minura Punchihewa Date: Sat, 29 Apr 2023 23:03:07 +0530 Subject: [PATCH 1/2] added the options parameter to sentence_similarity_in_df --- hugging_py_face/nlp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hugging_py_face/nlp.py b/hugging_py_face/nlp.py index 243bce3..7b6398c 100644 --- a/hugging_py_face/nlp.py +++ b/hugging_py_face/nlp.py @@ -235,6 +235,7 @@ def sentence_similarity_in_df(self, df: DataFrame, source_sentence_column: Text, "source_sentence": row[source_sentence_column], "sentences": [row[sentence_column]] }, + options=options, model=model, task='sentence-similarity' ) From 0bb6edbd13a40340078d7614cb27cae555bf8190 Mon Sep 17 00:00:00 2001 From: Minura Punchihewa Date: Sat, 29 Apr 2023 23:05:35 +0530 Subject: [PATCH 2/2] updated the package version --- hugging_py_face/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugging_py_face/__about__.py b/hugging_py_face/__about__.py index eb0939c..46da502 100644 --- a/hugging_py_face/__about__.py +++ b/hugging_py_face/__about__.py @@ -1,6 +1,6 @@ __title__ = 'hugging_py_face' __package_name__ = 'hugging_py_face' -__version__ = '0.2.0' +__version__ = '0.2.1' __description__ = "Hugging-Py-Face, the Python client for the Hugging Face Inference API." __email__ = "minurapunchihewa17@gmail.com" __author__ = 'Minura Punchihewa'