mwitiderrick commited on
Commit
e270cf9
·
verified ·
1 Parent(s): 8af5c8b

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -33
README.md DELETED
@@ -1,33 +0,0 @@
1
- Title: Image Generation with Chainlit
2
- Tags: [image, stability, langchain]
3
-
4
- # Image Generation with Chainlit
5
-
6
- This folder is showing how to use Stability AI to generate images and send them to the Chainlit UI.
7
-
8
- You will learn on how to use the [Image element](https://docs.chainlit.io/api-reference/elements/image) and integrate it with LangChain.
9
-
10
- ## Description
11
-
12
- The provided code integrates Stability AI's image generation capabilities with Chainlit, a framework for building interactive web apps with Python. It includes functions to generate new images from text prompts and to edit existing images using prompts. The image generation is powered by the Stability AI's API, and the images are displayed using Chainlit's Image element.
13
-
14
- ## Quickstart
15
-
16
- 1. Ensure you have Chainlit installed and set up.
17
- 2. Place your Stability AI API key in the environment variable `STABILITY_KEY`.
18
- 3. Run `app.py` to start the Chainlit app.
19
- 4. Use the `generate_image` function to create a new image from a text prompt.
20
- 5. Use the `edit_image` function to edit an existing image with a new prompt.
21
-
22
- ## Functions
23
-
24
- - `generate_image(prompt: str)`: Generates an image from a text prompt and returns the image name.
25
- - `edit_image(init_image_name: str, prompt: str)`: Edits an existing image based on the provided prompt and returns the new image name.
26
-
27
- ## Tools
28
-
29
- - `generate_image_tool`: A Chainlit tool for generating images from text prompts.
30
- - `edit_image_tool`: A Chainlit tool for editing images with text prompts.
31
-
32
- To see the tools in action and interact with the generated images, follow the instructions in the [main readme](/README.md).
33
- ![Rendering](./rendering.png)