This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git
The following commit(s) were added to refs/heads/main by this push:
new ddb5a80 Adjust sample python client to correctly work on grpc server
response
ddb5a80 is described below
commit ddb5a80e9d0edb047aa7f6b34591ac547229ccbd
Author: Richard Zowalla <[email protected]>
AuthorDate: Tue Apr 1 10:47:13 2025 +0200
Adjust sample python client to correctly work on grpc server response
---
opennlp-grpc/examples/python-client/main.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opennlp-grpc/examples/python-client/main.py
b/opennlp-grpc/examples/python-client/main.py
index 581c708..bfb3fc1 100644
--- a/opennlp-grpc/examples/python-client/main.py
+++ b/opennlp-grpc/examples/python-client/main.py
@@ -47,6 +47,6 @@ with grpc.insecure_channel(server_address) as channel:
tag_response = stub.Tag(tag_request)
# Output the response
- print(f"Tag Response: {tag_response.tags}")
+ print(f"Tag Response: {tag_response.values}")
except grpc.RpcError as e:
print(f"Tag call failed: {e}")