Skip to content

Commit

Permalink
Fix text sentiment example after api change
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Hickey <[email protected]>
  • Loading branch information
hickeyma committed May 25, 2023
1 parent 30addab commit 8ace3f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/text-sentiment/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ace3f2

Please sign in to comment.