aiXplain Pipelines adds AI functions to software.
Project description
aiXplain Pipelines
aiXplain Pipelines enables python programmers to add AI functions to their software.
An aiXplain pipeline is a directed acyclic graph (DAG) of AI functions built using aiXplain's designer UI. An AI function is a data processing step that relies on a machine learning model to execute. An example of an AI function is speech recognition or machine translation. It helps you process your data by calling a series of functions as defined in the DAG, abstracting the orchestration by providing a simple python function call.
aiXplain has a collection of AI models for each AI function. You can explore the collection of our AI models by using the discover feature of our platform's website.
aiXplain Pipeline Designer DAG
The image below shows a sample aiXplain pipeline built for subtitling video files. The description of the pipeline can be found in the documentation.
Installation
pip install aixplain-pipelines
User Guide
In order to use aiXplain pipelines, you need to create an account in aiXplain platform. Follow the code samples listed below to get started.
Code Samples and Demos
aixplain-pipelines provides python APIs to call AI workflows you can build with aiXplain designer.
Generic Snippet
from aixplain_pipelines import Pipeline
api_key=<API_KEY>
pipe = Pipeline(api_key=api_key)
path=<DATA_URL>
response = pipe.run(data=path)
API_KEY can be obtained by creating a pipeline in pipeline designer through the aiXplain platform UI.
For DATA_URL generate a http(s) link to your image or video file to process, though text input can be directly supplied to data parameter in the run function without needing a URL.
Information on how to generate the API_KEY can be found in the subtitle generation pipeline sample video.
Subtitle Generation
This demo creates a .srt file for the supplied video using aixplain-pipelines. Follow the instructions in the documentation.
Developer Guide
Follow the developer guide documentation.
Support
Raise issues for support in this repository.
Pull requests are welcome!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aixplain_pipelines-0.0.4.macosx-10.9-x86_64.tar.gz
.
File metadata
- Download URL: aixplain_pipelines-0.0.4.macosx-10.9-x86_64.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40ea388341d753da9bc64b258d17efc9a4f9b09cd3d22efbc95d36005975d06 |
|
MD5 | ed1508f3002f1b81d9f051a6e6b57bcd |
|
BLAKE2b-256 | 4e8cab87e088962657302ad9c4f9e7c73c1a9b12f6dcb843d5373332ac28afb7 |
File details
Details for the file aixplain_pipelines-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: aixplain_pipelines-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4137d5561a8137322016763b6c923cde4c146ec3df885db5ec005ceee57cbc6 |
|
MD5 | bc0852d90527c35bcefa71f7067d8a1e |
|
BLAKE2b-256 | 691367b1b3f9c0ee9ac4a54db86a211277911c976adf72ff5a67e81bcc5c93e5 |