From 8ace3f26dbd8c238585e5c64499f7617fca8bd3b Mon Sep 17 00:00:00 2001 From: Martin Hickey Date: Thu, 25 May 2023 14:06:38 +0100 Subject: [PATCH] Fix text sentiment example after api change Signed-off-by: Martin Hickey --- examples/text-sentiment/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/text-sentiment/client.py b/examples/text-sentiment/client.py index 8ea98fed6..87f87cf62 100644 --- a/examples/text-sentiment/client.py +++ b/examples/text-sentiment/client.py @@ -33,8 +33,8 @@ for text in ["I am not feeling well today!", "Today is a nice sunny day"]: input_text_proto = TextInput(text=text).to_proto() - request = inference_service.messages.HfBlockRequest(text_input=input_text_proto) - response = client_stub.HfBlockPredict( + request = inference_service.messages.HfModuleRequest(text_input=input_text_proto) + response = client_stub.HfModulePredict( request, metadata=[("mm-model-id", "text_sentiment")] ) print("Text:", text)