The following Python code will process the data `test_data/part-0` and write to the `processed.data` file.
[//file]:process.py
``` python
fromimdb_readerimportIMDBDataset
imdb_dataset=IMDBDataset()
...
...
@@ -59,7 +60,8 @@ exit
Run the following Python code on the host computer to start client. Make sure that the host computer is installed with the `paddle-serving-client` package.
``` go
[//file]:ab_client.py
``` python
frompaddle_serving_clientimportClient
client=Client()
...
...
@@ -94,3 +96,15 @@ When making prediction on the client side, if the parameter `need_variant_tag=Tr