Skip to main content

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 to TextCortex to get your free API Key
  2. Go to API Key section and copy your key.
  3. Install textcortex package: pip install textcortex
  4. Enter your API Key to hemingwai
  5. Generate relevant text, content or code 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_name='Black Leather Backpack Bag', product_category='Shoes & Bags, Women',
                    brand='Cortexian', product_features='Color: Black, Material: Faux Leather',
                    source_language='en', word_count=100, temperature=0.7, n_gen=4)

Response:

[
   {
      "text":"The Cortexian Black Backpack is a stylish and functional bag that can be worn for any occasion. It features a back zipper pocket so you can keep your belongings secure. The black color is ideal for any day and all occasions, from work to school to weekend outings.",
      "id":"2ff2d503-3d6b-405e-a8a5-13196f970160"
   },
   {
      "text":"This cute and stylish black backpack is made for everyday use. The back is padded, fully adjustable and has a removable shoulder strap which can be extended to fit over your shoulder or wear like an arm/back pack. It also comes with two side pockets as well as a main compartment.",
      "id":"87d21b28-48f4-4b7b-90e4-6fab7d7dd0f8"
   },
   {
      "text":"The Cortexian Black Backpack is the perfect travel companion for those who want to keep things simple. This backpack has a padded shoulder straps and an adjustable waist strap, making it comfortable for long periods of use.",
      "id":"20297317-9be6-4457-9481-17d402a988ab"
   }
]

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

# Generate Blog Titles:
hemingwai.generate_blog_titles

# Autocomplete the rest using Hemingwai
hemingwai.generate

# Extend paragraphs with a blog writing tone using Hemingwai
hemingwai.extend

# Generate Product Descriptions using Hemingwai
hemingwai.generate_product_descriptions

# Paraphrase a given sentence with a tone change or without.
hemingwai.paraphrase

Text Generation Variables

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

Here is a brief summary of what those variables:

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

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

word_count: Integer which defines the maximum amount of words 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.

Examples: For example while generating ads, you can add your target segment as an option.
See examples.py for examples.

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

Metadata

Release files for textcortex 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textcortex 2.0.3
File Size Uploaded
textcortex-2.0.3.tar.gz 7.0 kB Details

Release files / textcortex-2.0.3.tar.gz

Download URL textcortex-2.0.3.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ecbc232d5bce3c6f97239007cc0c461eb97382a7c6122af64527baa13172e50e
BLAKE2b-256 checksum
How to use checksums
8b15238a0cb9e7ac627bc18abc51c0e663542630a08c14ef11bec479a67c67e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Release history Release notifications | RSS feed

This release

2.0.3 This release

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.1.0

1 release file

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

1 release file

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page