diff --git a/examples/embeddings.py b/examples/embeddings.py index f379b54..afa4273 100644 --- a/examples/embeddings.py +++ b/examples/embeddings.py @@ -14,13 +14,13 @@ def run(): embeddings = Embeddings("http://localhost:8000") - data = [ + data = [ "US tops 5 million confirmed virus cases", "Canada's last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg", "Beijing mobilises invasion craft along coast as Taiwan tensions escalate", "The National Park Service warns against sacrificing slower friends in a bear attack", "Maine man wins $1M from $25 lottery ticket", - "Make huge profits without work, earn up to $100,000 a day" + "Make huge profits without work, earn up to $100,000 a day", ] print("Running similarity queries") @@ -74,4 +74,5 @@ def run(): print() print(f"Total Count: {count}") + run() diff --git a/examples/extractor.py b/examples/extractor.py index 69a392a..d0d5ede 100644 --- a/examples/extractor.py +++ b/examples/extractor.py @@ -26,7 +26,7 @@ def run(): "Final: Braves lose to the Phillies in the series opener, 5-0", "Lightning goaltender pulled, lose to Flyers 4-1", "Flyers 4 Lightning 1 final", - "Flyers win 4-1" + "Flyers win 4-1", ] # Run series of questions @@ -44,4 +44,5 @@ def run(): for result in extractor.extract([{"name": question, "query": question, "question": question, "snippet": False}], data): print(f"{result['name']} {result['answer']}") + run() diff --git a/examples/labels.py b/examples/labels.py index 9b83235..c59c4cf 100644 --- a/examples/labels.py +++ b/examples/labels.py @@ -26,7 +26,7 @@ def run(): "With the 30 yard completion, down to the 10 yard line", "Drains the 3pt shot!!, 0:15 remaining in the game", "Intercepted! Drives down the court and shoots for the win", - "Massive dunk!!! they are now up by 15 with 2 minutes to go" + "Massive dunk!!! they are now up by 15 with 2 minutes to go", ] tags = ["Baseball", "Football", "Hockey", "Basketball"] @@ -52,4 +52,5 @@ def run(): print(f"{text:<75} {label}") + run() diff --git a/examples/pipelines.py b/examples/pipelines.py index 1f48205..b24e756 100644 --- a/examples/pipelines.py +++ b/examples/pipelines.py @@ -51,4 +51,5 @@ def run(): print("\n---- Transcribed Text ----") print(transcription) + run() diff --git a/setup.py b/setup.py index 1bbca9a..cea7ed0 100644 --- a/setup.py +++ b/setup.py @@ -23,9 +23,7 @@ package_dir={"": "src/python"}, keywords="search embedding machine-learning nlp", python_requires=">=3.8", - install_requires=[ - "aiohttp>=3.8.1" - ], + install_requires=["aiohttp>=3.8.1"], classifiers=[ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent",