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
A Plover python dictionary allowing for consistent symbol input with specification of attachment and capitalisation in one stroke.

Emily's Symbol Dictionary Design This dictionary was created with the following goals in mind: Have a consistent method to type (pretty much) every sy

Emily 68 Jan 07, 2023
An open source library for deep learning end-to-end dialog systems and chatbots.

DeepPavlov is an open-source conversational AI library built on TensorFlow, Keras and PyTorch. DeepPavlov is designed for development of production re

Neural Networks and Deep Learning lab, MIPT 6k Dec 31, 2022
spaCy-wrap: For Wrapping fine-tuned transformers in spaCy pipelines

spaCy-wrap: For Wrapping fine-tuned transformers in spaCy pipelines spaCy-wrap is minimal library intended for wrapping fine-tuned transformers from t

Kenneth Enevoldsen 32 Dec 29, 2022
Few-shot Natural Language Generation for Task-Oriented Dialog

Few-shot Natural Language Generation for Task-Oriented Dialog This repository contains the dataset, source code and trained model for the following pa

172 Dec 13, 2022
LSTC: Boosting Atomic Action Detection with Long-Short-Term Context

LSTC: Boosting Atomic Action Detection with Long-Short-Term Context This Repository contains the code on AVA of our ACM MM 2021 paper: LSTC: Boosting

Tencent YouTu Research 9 Oct 11, 2022
All the code I wrote for Overwatch-related projects that I still own the rights to.

overwatch_shit.zip This is (eventually) going to contain all the software I wrote during my five-year imprisonment stay playing Overwatch. I'll be add

zkxjzmswkwl 2 Dec 31, 2021
Text classification on IMDB dataset using Keras and Bi-LSTM network

Text classification on IMDB dataset using Keras and Bi-LSTM Text classification on IMDB dataset using Keras and Bi-LSTM network. Usage python3 main.py

Hamza Rashid 2 Sep 27, 2022
Pre-training with Extracted Gap-sentences for Abstractive SUmmarization Sequence-to-sequence models

PEGASUS library Pre-training with Extracted Gap-sentences for Abstractive SUmmarization Sequence-to-sequence models, or PEGASUS, uses self-supervised

Google Research 1.4k Dec 22, 2022
Python bot created with Selenium that can guess the daily Wordle word correct 96.8% of the time.

Wordle_Bot Python bot created with Selenium that can guess the daily Wordle word correct 96.8% of the time. It will log onto the wordle website and en

Lucas Polidori 15 Dec 11, 2022
[Preprint] Escaping the Big Data Paradigm with Compact Transformers, 2021

Compact Transformers Preprint Link: Escaping the Big Data Paradigm with Compact Transformers By Ali Hassani[1]*, Steven Walton[1]*, Nikhil Shah[1], Ab

SHI Lab 367 Dec 31, 2022
Deep learning for NLP crash course at ABBYY.

Deep NLP Course at ABBYY Deep learning for NLP crash course at ABBYY. Suggested textbook: Neural Network Methods in Natural Language Processing by Yoa

Dan Anastasyev 597 Dec 18, 2022
Associated Repository for "Translation between Molecules and Natural Language"

MolT5: Translation between Molecules and Natural Language Associated repository for "Translation between Molecules and Natural Language". Table of Con

67 Dec 15, 2022
Phrase-BERT: Improved Phrase Embeddings from BERT with an Application to Corpus Exploration

Phrase-BERT: Improved Phrase Embeddings from BERT with an Application to Corpus Exploration This is the official repository for the EMNLP 2021 long pa

70 Dec 11, 2022
Code for the paper "Are Sixteen Heads Really Better than One?"

Are Sixteen Heads Really Better than One? This repository contains code to reproduce the experiments in our paper Are Sixteen Heads Really Better than

Paul Michel 143 Dec 14, 2022
LewusBot - Twitch ChatBot built in python with twitchio library

LewusBot Twitch ChatBot built in python with twitchio library. Uses twitch/leagu

Lewus 25 Dec 04, 2022
🤗 Transformers: State-of-the-art Natural Language Processing for Pytorch, TensorFlow, and JAX.

English | 简体中文 | 繁體中文 State-of-the-art Natural Language Processing for Jax, PyTorch and TensorFlow 🤗 Transformers provides thousands of pretrained mo

Hugging Face 77.2k Jan 03, 2023
Easy-to-use CPM for Chinese text generation

CPM 项目描述 CPM(Chinese Pretrained Models)模型是北京智源人工智能研究院和清华大学发布的中文大规模预训练模型。官方发布了三种规模的模型,参数量分别为109M、334M、2.6B,用户需申请与通过审核,方可下载。 由于原项目需要考虑大模型的训练和使用,需要安装较为复杂

382 Jan 07, 2023
SNCSE: Contrastive Learning for Unsupervised Sentence Embedding with Soft Negative Samples

SNCSE SNCSE: Contrastive Learning for Unsupervised Sentence Embedding with Soft Negative Samples This is the repository for SNCSE. SNCSE aims to allev

Sense-GVT 59 Jan 02, 2023
Clone a voice in 5 seconds to generate arbitrary speech in real-time

This repository is forked from Real-Time-Voice-Cloning which only support English. English | 中文 Features 🌍 Chinese supported mandarin and tested with

Weijia Chen 25.6k Jan 06, 2023