Skip to content

Commit a14b4c0

Browse files
committed
Update README
1 parent 4348051 commit a14b4c0

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Python Infer Client
22

3-
[![Testing](https://github.com/rabiloo/python-infer-client/actions/workflows/test.yml/badge.svg)](https://github.com/rabiloo/python-flysystem/actions/workflows/test.yml)
4-
[![Latest Version](https://img.shields.io/pypi/v/flysystem.svg)](https://pypi.org/project/flysystem)
5-
[![Downloads](https://img.shields.io/pypi/dm/flysystem.svg)](https://pypi.org/project/flysystem)
6-
[![Pypi Status](https://img.shields.io/pypi/status/flysystem.svg)](https://pypi.org/project/flysystem)
7-
[![Python Versions](https://img.shields.io/pypi/pyversions/flysystem.svg)](https://pypi.org/project/flysystem)
3+
[![Testing](https://github.com/rabiloo/python-infer-client/actions/workflows/test.yml/badge.svg)](https://github.com/rabiloo/python-infer-client/actions/workflows/test.yml)
4+
[![Latest Version](https://img.shields.io/pypi/v/infer-client.svg)](https://pypi.org/project/infer-client)
5+
[![Downloads](https://img.shields.io/pypi/dm/infer-client.svg)](https://pypi.org/project/infer-client)
6+
[![Pypi Status](https://img.shields.io/pypi/status/infer-client.svg)](https://pypi.org/project/infer-client)
7+
[![Python Versions](https://img.shields.io/pypi/pyversions/infer-client.svg)](https://pypi.org/project/infer-client)
88

99
## About Python Infer Client
1010

11-
[Python Infer Client](https://github.com/rabiloo/ai_infer_client) is a python inference client library. It provides one interface to interact with many types of filesystems. When you use Flysystem, you're not only protected from vendor lock-in, you'll also have a consistent experience for which ever storage is right for you.
11+
[Python Infer Client](https://github.com/rabiloo/python-infer-client) is a python inference client library. It provides one interface to interact with many types of inference client as onnxruntime, tritonclient...
1212

1313
## Install
1414

@@ -19,14 +19,16 @@ $ pip install infer-client
1919
## Usage
2020

2121
```
22-
from flysystem.adapters.local import LocalFilesystemAdapter
23-
from flysystem.filesystem import Filesystem
22+
import numpy as np
2423
24+
from infer_client.adapters.onnx import OnnxInferenceAdapter
25+
from infer_client.inference import Inference
2526
26-
adapter = LocalFilesystemAdapter(".")
27-
filesystem = Filesystem(adapter)
2827
29-
filesystem.file_exists("/tmp/hello.txt")
28+
adapter = OnnxInferenceAdapter(model_name="resources/test_classify", version="1", limit_mem_gpu=-1)
29+
infer_client_obj = Inference(adapter)
30+
31+
res = infer_client_obj.inference({"input": np.random.rand(1, 3, 224, 224)}, ["output"])
3032
```
3133

3234
## Changelog

0 commit comments

Comments
 (0)