Generate product descriptions, blogs, ads and more using GPT architecture with a single request to TextCortex API a.k.a Hemingwai

Overview

TextCortex - HemingwAI

alt text

Generate product descriptions, blogs, ads and more using GPT architecture with a single request to TextCortex API a.k.a HemingwAI

How To Generate Content using TextCortex Hemingwai:

  1. Signup at https://textcortex.com
  2. Sign-in and click on account on top right.
  3. Go to API Key section and copy your key.
  4. Install textcortex package: pip install textcortex
  5. Enter your API Key to hemingwai
  6. Generate copy text with a single line of code!

Here is an example request to Hemingwai for generating Product Descriptions:

from textcortex import TextCortex

# Create the hemingwai object and enter your API Key
hemingwai = TextCortex(api_key='YOUR_API_KEY')

# Generate Product Descriptions using Hemingwai
product_description = hemingwai.generate_product_descriptions(
                    product_title='Black Backpack', product_category='Shoes & Bags', target_segment='',
                    source_language='en', character_count=300, creativity=0.7)
print(product_description)

Response:

    "ai_results": [
        {
            "generated_text": " This blue cotton duvet set will make your bedroom set, comfortable and stylish. The duvet cover set is made from soft polyester fabric with detailed embroidery. The duvet cover set has blue and silver floral embroidery details. The decorative pillows are decorated with black and silver embroidery. The duvet cover set is completed with coordinated Two shams, one in the same design. The duvet cover set is",
            "rank": 0.9533,
            "text_length": 407,
            "word_frequency": [
                {
                    "word": "cover",
                    "frequency": 4
                },
                {
                    "word": "embroidery",
                    "frequency": 3
                },
                {
                    "word": "duvet",
                    "frequency": 5
                },
                {
                    "word": "with",
                    "frequency": 3
                }
            ],
            "word_count": 67
        }...

What kind of texts are possible to generate?

Currently we support the following methods for generating copy text like the following:

# Generate Blog Articles:
hemingwai.generate_blog

# Autocomplete the rest using Hemingwai
hemingwai.generate

# Generate Ad copies using Hemingwai
hemingwai.generate_ads

# Generate Email Body using Hemingwai
hemingwai.generate_email_body

# Generate Email Subject using Hemingwai
hemingwai.generate_email_subject

# Generate Product Descriptions using Hemingwai
hemingwai.generate_product_descriptions

Parameters

There are some parameters that you need to send before making a request to Hemingwai.

Here is a brief summary of what those parameters:

prompt: Prompting the HemingwAI to start writing on a specific subject

creativity: Floating number between 0-1. 0 being the lowest creativity and 1 being the highest. Default is 0.7

character_length: Integer which defines the maximum amount of characters that can be produced by the HemingwAI

source_language: Language code of the source language of the written prompt. for example 'en' for English and 'de' for German. We support 72 languages. If you don't know the language code you can also use 'auto' for this field to automatically sense the input language.

target_segment: Used for setting the tone of the generated copy text. It can be basically anything but please keep it plausible :) Examples: Young people, middle aged people, young men, women, etc..

Still have questions?

You can have a look at the HemingwAI's documentation on TextCortex website

Or talk to us at the TextCortex Dev Community on slack

Maintainer/Creator

TextCortex Team (https://textcortex.com)

License

MIT

You might also like...
Train GPT-3 model on V100(16GB Mem) Using improved Transformer. Modified GPT using average pooling to reduce the softmax attention memory constraints.
Modified GPT using average pooling to reduce the softmax attention memory constraints.

NLP-GPT-Upsampling This repository contains an implementation of Open AI's GPT Model. In particular, this implementation takes inspiration from the Ny

Creating a chess engine using GPT-3
Creating a chess engine using GPT-3

GPT3Chess Creating a chess engine using GPT-3 Code for my article : https://towardsdatascience.com/gpt-3-play-chess-d123a96096a9 My game (white) vs GP

Generate custom detailed survey paper with topic clustered sections and proper citations, from just a single query in just under 30 mins !!
Generate custom detailed survey paper with topic clustered sections and proper citations, from just a single query in just under 30 mins !!

Auto-Research A no-code utility to generate a detailed well-cited survey with topic clustered sections (draft paper format) and other interesting arti

Demo programs for the Talking Head Anime from a Single Image 2: More Expressive project.
Demo programs for the Talking Head Anime from a Single Image 2: More Expressive project.

Demo Code for "Talking Head Anime from a Single Image 2: More Expressive" This repository contains demo programs for the Talking Head Anime

Ecommerce product title recognition package

revizor This package solves task of splitting product title string into components, like type, brand, model and article (or SKU or product code or you

🛸 Use pretrained transformers like BERT, XLNet and GPT-2 in spaCy

spacy-transformers: Use pretrained transformers like BERT, XLNet and GPT-2 in spaCy This package provides spaCy components and architectures to use tr

🛸 Use pretrained transformers like BERT, XLNet and GPT-2 in spaCy

spacy-transformers: Use pretrained transformers like BERT, XLNet and GPT-2 in spaCy This package provides spaCy components and architectures to use tr

Explore different way to mix speech model(wav2vec2, hubert) and nlp model(BART,T5,GPT) together

SpeechMix Explore different way to mix speech model(wav2vec2, hubert) and nlp model(BART,T5,GPT) together. Introduction For the same input: from datas

Comments
  • Error in Running API Key Cell

    Error in Running API Key Cell

    Hi! When I entered the API key and run the cell then it gives me an error: ERROR:root:Ops, error {'status': 'fail', 'message': 'An error happened while processing your request', 'error': 500} None Please guide or help to solve it! Thanks! image

    opened by muhammadatifaltaf 1
  • add error handling

    add error handling

    Hi there, this is a small PR for adding the following features:

    1. error treatments to request calls.
    2. logger to log eventual errors.
    3. decorator to retry when found an error.

    Cheers, Vinicius

    opened by vwoloszyn 1
  • Refactor hemingwai -> textcortex-python

    Refactor hemingwai -> textcortex-python

    The goal is to improve the naming conventions and code quality in this repo.

    • [ ] Refactor hemingwai -> textcortex-python
    • [ ] Update functions to the latest version of the API
    • [ ] Improve documentation
    opened by osolmaz 0
Releases(v.2.0.0)
  • v.2.0.0(Jun 28, 2022)

    Big update! Moving into HemingwAI V2:

    • With this update, prompting got much easier and easy to understand.
    • We have also introduced generation_ids to the endpoint which means that you will be able to give feedback regarding to the quality of the outputs. This helps us give a better text generation for your needs. We will be sharing about tips how to give update on the data in later releases.
    • We have removed some of the generation functions until we can assure the quality on the outputs. You can still use this generation but you need to look at the examples under the postman collection
    Source code(tar.gz)
    Source code(zip)
  • v1.0.10(Apr 21, 2022)

    -Added blog title generation feature, which can be used for generating blog titles, youtube titles or any kind of title that can be used based on the given keywords. -Added examples

    Source code(tar.gz)
    Source code(zip)
  • v.1.0.9(Mar 29, 2022)

  • v.1.0.8(Mar 9, 2022)

  • v.1.0.7(Mar 2, 2022)

    What's Changed

    • add error handling by @vwoloszyn in https://github.com/textcortex/hemingwai/pull/1

    New Contributors

    • @vwoloszyn made their first contribution in https://github.com/textcortex/hemingwai/pull/1

    Full Changelog: https://github.com/textcortex/hemingwai/commits/v.1.0.7

    Source code(tar.gz)
    Source code(zip)
Owner
TextCortex AI
TextCortex AI is an open source NLG platform that let's you generate product descriptions, blogs, emails, ad copies and more with just a single API call.
TextCortex AI
Honor's thesis project analyzing whether the GPT-2 model can more effectively generate free-verse or structured poetry.

gpt2-poetry The following code is for my senior honor's thesis project, under the guidance of Dr. Keith Holyoak at the University of California, Los A

Ashley Kim 2 Jan 9, 2022
GPT-Code-Clippy (GPT-CC) is an open source version of GitHub Copilot, a language model

GPT-Code-Clippy (GPT-CC) is an open source version of GitHub Copilot, a language model -- based on GPT-3, called GPT-Codex -- that is fine-tuned on publicly available code from GitHub.

Nathan Cooper 2.3k Jan 1, 2023
Guide: Finetune GPT2-XL (1.5 Billion Parameters) and GPT-NEO (2.7 B) on a single 16 GB VRAM V100 Google Cloud instance with Huggingface Transformers using DeepSpeed

Guide: Finetune GPT2-XL (1.5 Billion Parameters) and GPT-NEO (2.7 Billion Parameters) on a single 16 GB VRAM V100 Google Cloud instance with Huggingfa

null 289 Jan 6, 2023
A python project made to generate code using either OpenAI's codex or GPT-J (Although not as good as codex)

CodeJ A python project made to generate code using either OpenAI's codex or GPT-J (Although not as good as codex) Install requirements pip install -r

TheProtagonist 1 Dec 6, 2021
Contains descriptions and code of the mini-projects developed in various programming languages

TexttoSpeechAndLanguageTranslator-project introduction A pleasant application where the client will be given buttons like play,reset and exit. The cli

Adarsh Reddy 1 Dec 22, 2021
Shirt Bot is a discord bot which uses GPT-3 to generate text

SHIRT BOT · Shirt Bot is a discord bot which uses GPT-3 to generate text. Made by Cyclcrclicly#3420 (474183744685604865) on Discord. Support Server EX

null 31 Oct 31, 2022
Interactive Jupyter Notebook Environment for using the GPT-3 Instruct API

gpt3-instruct-sandbox Interactive Jupyter Notebook Environment for using the GPT-3 Instruct API Description This project updates an existing GPT-3 san

null 312 Jan 3, 2023
API for the GPT-J language model 🦜. Including a FastAPI backend and a streamlit frontend

gpt-j-api ?? An API to interact with the GPT-J language model. You can use and test the model in two different ways: Streamlit web app at http://api.v

Víctor Gallego 276 Dec 31, 2022
📜 GPT-2 Rhyming Limerick and Haiku models using data augmentation

Well-formed Limericks and Haikus with GPT2 ?? GPT-2 Rhyming Limerick and Haiku models using data augmentation In collaboration with Matthew Korahais &

Bardia Shahrestani 2 May 26, 2022