Unverified Commit 47ffb81d authored by Matt Williams's avatar Matt Williams Committed by GitHub
Browse files

Update examples/python-json-datagenerator/readme.md


Co-authored-by: default avatarBruce MacDonald <brucewmacdonald@gmail.com>
parent 69795d2d
......@@ -24,7 +24,7 @@ When running `randomaddresses.py` you will see that the schema changes and adapt
In `predefinedschema.py`, a template has been specified in the prompt as well. It's been defined as JSON and then dumped into the prompt string to make it easier to work with.
Both examples turn streaming off so that we end up with the completed JSON all at once. We need to convert the `response.text` to JSON so that when we output it as a string we can set the indent spacing to make the output attractive.
Both examples turn streaming off so that we end up with the completed JSON all at once. We need to convert the `response.text` to JSON so that when we output it as a string we can set the indent spacing to make the output easy to read.
```python
response = requests.post("http://localhost:11434/api/generate", json=data, stream=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment