Generates human-like text using OpenAI GPT-3 via a text-in, text-out API.

Overview

Gpt3TextGeneration

Generate human-like text using OpenAI GPT-3 via a text-in, text-out API.

Overview

GPT-3 is the first-ever generalized language model in the field of natural language processing that can perform equally well on an array of NLP tasks. It stands for Generative Pre-trained Transformer, which can produce text remarkably similar to that produced by a human.

Usage

🚧 You need access to the OpenAI API Key to use this Executor: If you don't have access to the API, please apply here. 🚧

Once you have the API KEY, you can pass it as uses_with: {'api_key': 'value'} along with the Executor name.

To adjust the results according to your use case, you can set the value of max_token and temperature in the uses_with section. To learn more about each of these parameters, check out the documentation.

via Sandbox (recommended)

from jina import Flow
	
f = Flow().add(uses='jinahub+sandbox://Gpt3TextGeneration')

via Docker image

from jina import Flow
	
f = Flow().add(uses='jinahub+docker://Gpt3TextGeneration')

via source code

from jina import Flow
	
f = Flow().add(uses='jinahub://Gpt3TextGeneration')
  • To override __init__ args & kwargs, use .add(..., uses_with: {'key': 'value'})
  • To override class metas, use .add(..., uses_metas: {'key': 'value})

Examples

Here is an example of generating ad copy using the GPT3TextGeneration Executor:

from jina import Flow
from docarray import Document, DocumentArray

flow = Flow().add(uses='jinahub+sandbox://Gpt3TextGeneration', uses_with=({'api_key': API_KEY}))

text = 'Write a tagline for an ice cream shop:'

with flow:
    da = DocumentArray([Document(text=text) for _ in range(1)])
    r = flow.post(on='/complete', inputs=da)        
    for doc in r:
        print(doc.text)

Following is the output produced by the Executor:

Output: The best ice cream in town!
You might also like...

Implementation of DALL-E 2, OpenAI's updated text-to-image synthesis neural network, in Pytorch

Implementation of DALL-E 2, OpenAI's updated text-to-image synthesis neural network,  in Pytorch

DALL-E 2 - Pytorch Implementation of DALL-E 2, OpenAI's updated text-to-image synthesis neural network, in Pytorch. Yannic Kilcher summary | AssemblyA

Sep 25, 2022

A Deep Reinforcement Learning solution to the famous mountain car problem using OpenAI's classical control environment

A Deep Reinforcement Learning solution to the famous mountain car problem using OpenAI's classical control environment

Deep RL/Robotics Classical Control Problem - Mountain Car Problem Description A car is on a one-dimensional track, positioned between two "mountains".

Apr 4, 2022

Converts python code into c++ by using OpenAI CODEX.

🦾 codex_py2cpp 🤖 OpenAI Codex Python to C++ Code Generator Your Python Code is too slow? 🐌 You want to speed it up but forgot how to code in C++? ⌨

Sep 24, 2022

University project for training and evaluating reinforcement learning agents in OpenAI Gym environments using DQN.

University project for training and evaluating reinforcement learning agents in OpenAI Gym environments using DQN.

Reinforcement Learning Gym Train and evaluate reinforcement learning agents in OpenAI Gym environments using Deep Q-learning (DQN). Environments The f

Sep 5, 2022

Playing OpenAI Gym's Cartpole environment using deep Q learning.

Playing OpenAI Gym's Cartpole environment using deep Q learning.

DQN-Cartpole Solving OpenAI Gym's cartpole environment using deep Q learning Libraries used: Pytorch, Gym, Numpy, Matplotlib Results from training 100

Jun 29, 2022

Using OpenAI's Whisper to automatically generate YouTube subtitles

Automatic YouTube subtitle generation This repository uses youtube-dl and OpenAI's Whisper to generate subtitle files for any youtube video. Installat

Sep 25, 2022

This repository is the official implementation of DiffuStereo: High Quality Human Reconstruction via Diffusion-based Stereo Using Sparse Cameras.

This repository is the official implementation of DiffuStereo: High Quality Human Reconstruction via Diffusion-based Stereo Using Sparse Cameras.

News 31/07/2022 We plan to release the THUman5.0 dataset for acadamic use. The dataset contains 10 dynamic human sequences which are captured by 32 RG

Sep 19, 2022

A 'human like' solver for hCaptcha in selenium for python

A 'human like' solver for hCaptcha in selenium for python

Selenium-hCpatcha-Solver-Python What Is This Project? This is a 'human like' hCaptcha solver for selenium written in python, it utilises the api provi

Sep 10, 2022

Pop-Out Motion: 3D-Aware Image Deformation via Learning the Shape Laplacian (CVPR 2022)

Pop-Out Motion: 3D-Aware Image Deformation via Learning the Shape Laplacian (CVPR 2022)

Pop-Out Motion Pop-Out Motion: 3D-Aware Image Deformation via Learning the Shape Laplacian (CVPR 2022) Jihyun Lee*, Minhyuk Sung*, Hyunjin Kim, Tae-Ky

Sep 15, 2022
Releases(v0.1)
Owner
Shubham Saboo
🤝 Dev Rel Specialist @ Jina AI | 🤖 Co-Founder @ Kairos Data Labs | ✍️ Author @ O'Reilly Media
Shubham Saboo
Unofficial PyTorch Implementation of OpenAI's GPT-3

gpt3-pytorch Unofficial PyTorch Implementation of OpenAI's GPT-3 (discount edition) Foreword I'm definitely aware I'm late to the party but here's my

Rishabh Anand 7 Aug 31, 2022
Example code for prefix-tuning GPT/GPT-NeoX models and for inference with trained prefixes

prefix-tuning-gpt This repository demonstrates how to conduct prefix-tuning with GPT/GPT-NeoX models and to do inference with trained prefix weights.

rinna Co.,Ltd. 4 Sep 17, 2022
I built a function to crop out the images detected when using Tensorflow 2.0. This Just crops out each detected image and stores them in file path under the images Name.

Tensorflow_crop_import I built a function to crop out the images detected when using Tensorflow 2.0. This Just crops out each detected image and store

null 0 Sep 21, 2022
A MBTI test on Large Language Model like GPT-3.

Do Large Language Models have personalities? (doge) In memory of Labour Day of 2022. MBTI test got very popular recently. Question: What if we let Lar

Tianbao Xie 14 May 4, 2022
Code for CVPR 2022 paper "Bailando: 3D dance generation via Actor-Critic GPT with Choreographic Memory"

Bailando Code for CVPR 2022 (oral) paper "Bailando: 3D dance generation via Actor-Critic GPT with Choreographic Memory" [Paper] | [Project Page] | [Vi

Li Siyao 192 Sep 17, 2022
Long-form text-to-images generation, using a pipeline of deep generative models (GPT-3 and Stable Diffusion)

Long Stable Diffusion: Long-form text to images e.g. story -> Stable Diffusion -> illustrations Right now, Stable Diffusion can only take in a short p

Sharon Zhou 360 Sep 18, 2022
This Bot uses NLP, more specifically the OpenAi API.

Discord_NLP_Bot This Bot uses NLP, more specifically the OpenAi API. Visit OpenAi, create a free account and get your API key ?? . You will also have

bitweiser 0 May 30, 2022
XXE Out-Of-Band multi-line content exfiltrator via external DTD using self-hosted HTTP and FTP servers

XXE OOB Exfiltrator Description This is a simple tool for exploiting XXE Out-Of-Band vulnerability to exfiltrate files content (or list directories) u

Michele Di Bonaventura 2 May 23, 2022
Othello Game (Also known as Reversi). It was created with the Minimax algorithm (Alpha-Beta pruning). Allows Human-AI, AI-AI, RandomPlayer-AI, RandomPlayer-Human interplay

Othello Game Othello Game (Also known as Reversi) It was created with the Minimax algorithm (Alpha-Beta pruning). This game allows Human-AI, AI-AI, Ra

Can 1 May 14, 2022
Deep learning for predicting and elucidating human T-lymphotrophic virus 1 integration in the human genome

DeepHTLV Deep learning for elucidating HTLV-1 integration sites Introduction Human T-lymphotrophic virus 1 (HTLV-1) is the causative agent for adult T

null 1 Jun 23, 2022