Skip to content

Commit

Permalink
add image example
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jul 14, 2023
1 parent 7bc6f43 commit 3539336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ await session.astart()

# generate a response based on user input
output = await session.generate_response(
f"Plot the bitcoin chart of 2023 YTD"
"Plot the bitcoin chart of 2023 YTD"
)
# show output image in default image viewer
file = output.files[0]
Expand All @@ -35,6 +35,10 @@ print("AI: ", output.content)
await session.stop()

```
## Output

![Bitcoin YTD](https://raw.githubusercontent.com/shroominic/codeinterpreterapi/main/examples/bitcoin_chart.png)


## Production

Expand Down
Binary file added examples/bitcoin_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3539336

Please sign in to comment.