Skip to main content

No project description provided

Project description

danteai

Danteai is a convenient Python package for training your own text-based AI model and using it in practice to generate responses based on specified parameters. The package is fully tailored for the tasks of Dante (an application for article generation). If you need to modify the default settings, pay attention to the minions.py, create_or_train.py, and get_generated_article.py files.

Installation

Install the package using pip:

pip install danteai

Example Usage

echo MODEL_STORE_DIR='./model' > .env
export $(cat .env | xargs)
from danteai import (
    create_or_train,
    get_generated_article,
)
from dotenv import load_dotenv

load_dotenv()

"""
    data = [
        {
            'tags': [],
            'text_example': '',
            'short_news_description': '',
            'response': ''
        },
        ...
    ]
"""

create_or_train_response = create_or_train(
    data=[],
    create_new_model=True
)
print(create_or_train_response)
# if only training, using False for 'create_new_model'

generated_article = get_generated_article(
    tags=[],
    text_example='',
    short_news_description=''
)
print(generated_article)

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

danteai-1.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

danteai-1.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file danteai-1.1.1.tar.gz.

File metadata

  • Download URL: danteai-1.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for danteai-1.1.1.tar.gz
Algorithm Hash digest
SHA256 29d1a86e327f490853d32e9c7fdacf20696c3c323fa887d201978f7b70a26191
MD5 8fc5f22715d9292bc7696eb061a54f82
BLAKE2b-256 2a0c6aa83b7fe121e09db9f602d90fd0cbc54f34170b859c0a6db9e4cb7133a7

See more details on using hashes here.

File details

Details for the file danteai-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: danteai-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for danteai-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f16b2ab2d21c7c9dad2b3c7f9f59ea9f94cf01b5cf3844acdc9cca777b0dc2fe
MD5 81aa5118def27c66e162fd582593c04d
BLAKE2b-256 0e614d8522603c6065e7c690ccccedb3b7ad3745abb5fe6d880de55b8712398b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page