Skip to content

Commit

Permalink
update readme image
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed May 27, 2024
1 parent 08d8780 commit 8004aac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Full documentation is available [here](https://docs.chainlit.io). You can ask Ch
> Check out [Literal AI](https://literalai.com), our product to monitor and evaluate LLM applications! It works with any Python or TypeScript applications and [seamlessly](https://docs.chainlit.io/data-persistence/overview) with Chainlit by adding a `LITERAL_API_KEY` in your project.
<p align="center">
<img src="https://github.com/Chainlit/chainlit/assets/13104895/0c2cc7a9-766c-41d3-aae2-117a2d0eb8ed" width="70%" style="border-radius:50%" />
<img src="https://github.com/Chainlit/chainlit/assets/13104895/0c2cc7a9-766c-41d3-aae2-117a2d0eb8ed" width="80%" />
</p>

## Installation
Expand All @@ -47,8 +47,10 @@ Create a new file `demo.py` with the following code:
import chainlit as cl


@cl.step
def tool():
@cl.step(type="tool")
async def tool():
# Fake tool
await cl.sleep(2)
return "Response from the tool!"


Expand All @@ -65,11 +67,12 @@ async def main(message: cl.Message):
None.
"""

final_answer = await cl.Message(content="").send()

# Call the tool
tool()
final_answer.content = await tool()

# Send the final answer.
await cl.Message(content="This is the final answer").send()
await final_answer.update()
```

Now run it!
Expand Down
Binary file modified images/quick-start.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 8004aac

Please sign in to comment.