From 76dc403380e71e1a85dcd5b4133b24088c1e97ec Mon Sep 17 00:00:00 2001 From: Sean Sheng Date: Thu, 11 Apr 2024 22:43:00 -0700 Subject: [PATCH] chore: cleanup quickstart --- examples/quickstart/test/client.py | 21 --------------------- examples/quickstart/test/test.txt | 1 - examples/quickstart/test/test2.txt | 1 - 3 files changed, 23 deletions(-) delete mode 100644 examples/quickstart/test/client.py delete mode 100644 examples/quickstart/test/test.txt delete mode 100644 examples/quickstart/test/test2.txt diff --git a/examples/quickstart/test/client.py b/examples/quickstart/test/client.py deleted file mode 100644 index d508877a416..00000000000 --- a/examples/quickstart/test/client.py +++ /dev/null @@ -1,21 +0,0 @@ -import logging - -import numpy as np - -from bentoml import HTTPServer -from bentoml.client import Client - -logging.basicConfig(level=logging.WARN) - -if __name__ == "__main__": - server = HTTPServer("iris_classifier:latest", production=True, port=3000) - - # Start the server in a separate process and connect to it using a client - with server.start() as client: - res = client.classify(np.array([[4.9, 3.0, 1.4, 0.2]])) - print(f"Successfully received results, {res}") - - # Alternatively, you can use Client.from_url to connect to an already running server - client = Client.from_url("http://localhost:3000") - res = client.classify(np.array([[4.9, 3.0, 1.4, 0.2]])) - print(f"Successfully received results, {res}") diff --git a/examples/quickstart/test/test.txt b/examples/quickstart/test/test.txt deleted file mode 100644 index 3b18e512dba..00000000000 --- a/examples/quickstart/test/test.txt +++ /dev/null @@ -1 +0,0 @@ -hello world diff --git a/examples/quickstart/test/test2.txt b/examples/quickstart/test/test2.txt deleted file mode 100644 index 3b18e512dba..00000000000 --- a/examples/quickstart/test/test2.txt +++ /dev/null @@ -1 +0,0 @@ -hello world