Description:
🌟 The Toolchain is a suite of advanced tools designed for the Chainlit platform. It enhances the Chainlit context with the SessionToolchain, simplifying interactions from external sources such as webhooks for reporting the status of third-party services. The ImageToolchain aims to create abstract workflows for managing, modifying, and generating images. It efficiently handles multiple image generation jobs and variations without overwhelming the user with information.
-
ParsedReplicatePredictionLog:
- Purpose: 🎯 Crucial for monitoring and tracking the progress of various processes.
- Functionality: 💡 Expertly parses and manages log data related to replicate predictions.
-
SessionToolchain:
- Role: 🌐 Seamlessly manages the
chainlitcontext across different connection states. - Feature: 🔗 Utilizes a public_id for webhook-based session restoration, ensuring consistent functionality in diverse scenarios.
- Role: 🌐 Seamlessly manages the
-
ImageToolchain:
- Function: 🖼️ Capably handles multiple image processing jobs and their variations.
- Integration: 🤝 Collaborates with
SessionToolchainfor real-time external status updates and reporting.
The toolchain is integrated with the Chainlit platform, providing sophisticated features for session management, image processing, and detailed logging. For in-depth usage, users are encouraged to refer to the specific functions and classes in each module.
Send images to convert to videos.
- Attach 1 or more images to your message before sending.
- Note: You cannot send an empty message so type anything, ie. an empty space " " spacebar.
Each image is copied to the server and displayed in your Chainlit reply.
- The chat bot responds with a separate
Messagefor each image. - A
Messagecontains multipleActioncomponents to help initiatencreations. - The count
nis defined with the presets in variablebatch_sizes, currently [1, 2, 3, 5]. - An additional
Action"Specify how many" prompts the user to enter an amount viaAskUserMessage.
Selecting an Action displays information about the creation progress.
- The
Messagechanges its layout.- All
Actioncomponents for creation are removed. - Information on the active creation process is displayed.
- A
Stepis added for eachncreation started, click for further progress details.
- All
Expand "Took n steps" for detailed progress reporting.
- The initial visibility can be changed with the
Expand Messagesuser setting. - Progress is tracked independly for each creation.
- Progress updates are immediately reflected in the containing
Stepcomponent. - As creations complete, a
ChainlitVideocomponent is automatically created to display the results.
- Progress updates are immediately reflected in the containing
- Updates to progress can be made asynchronously.
- External progressed updates can be initialized via webhooks.
Enjoy your creations.
If unsafe_allow_html is not set to true in the .chainlit/config.toml file and/or a custom .css file isn't specified, HTML will likely display instead of a progress bar as seen below. Updating unsafe_allow_html = true and specifying custom_css = "/public/<custom_css_file>.css" will resolve the issue during the next creation attempt.
IMPORTANT READ:
Why it is dangerous to render user generated html or javascript
Changes to FastAPI endpoint code outside of Chainlit won't be updated, even when detected file system changes initiate a hot reload. When in doubt always stop and start the site.
Detailed instructions for installation and setup will be provided, tailored to the project's deployment and dependency management requirements.
Guidelines for contributing to the project, including coding standards and the pull request process.
Information about the project's licensing.
This README is a draft and can be adjusted to better fit the project's specifics and requirements.





