Skip to content

Commit

Permalink
[text generation] fix http server readme update (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfineran authored Nov 29, 2023
1 parent 2038a0d commit 83a511d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deepsparse/transformers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ url = "http://localhost:5543/v2/models/text_generation/infer" # Server's port de
obj = {"prompt": "Who is the president of the United States?"}

response = requests.post(url, json=obj)
print(response.json().text)
print(response.json()["generations"][0]["text"])

>> 'The president of the United States is the head of the executive branch of government...'
```
Expand Down

0 comments on commit 83a511d

Please sign in to comment.