Skip to main content

Wrapper for the GPT2 Api

Project description

gpt2Api-Client

Under construction!

Developed by Anirudh from TechWithAnirudh (c) 2021

Examples of How To Use (Alpha Version)

Creating A Request

start_paragraph = "Today was a fine day. I woke up and brushed my teeth. And Ate Breakfast. I was going to work When"
api = Api()
api.setApiUrl(input('Enter The Api URL: '))
print(api.ConditionalSamples(start_paragraph))
start_paragraph = "Today was a fine day. I woke up saw some news that the coding event is starting today. I love coding so I prepared. After I prepared"
api = Api()
api.setApiUrl(input('Enter The Api URL: '))
print(api.ConditionalSamples(start_paragraph))

Go to this url: https://github.com/techwithanirudh/Shared/blob/master/GPT2Api.ipynb And run the code copy the url called GPT2ApiURL=... and paste it here. This will give the json response

Very Easy To To Use GPT2 Wrapper

Info

See The Docs On How To Use This: https://techwithanirudh.blogspot.com/2021/03/docs-for-gpt2api-client-module.html

Check out: https://www.youtube.com/channel/UCmse86kaxJ3n1dDT_bXDukg

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

gpt2Api_Client-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

gpt2Api_Client-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file gpt2Api_Client-0.1.1.tar.gz.

File metadata

  • Download URL: gpt2Api_Client-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.3

File hashes

Hashes for gpt2Api_Client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a1b871944ab7bf44b88843522f28a5f0b79ee9886fb3c683be63cecd0a664f2d
MD5 57b9fcf711676bdc6a08dfad310f867a
BLAKE2b-256 f3d32ad1b6dd3def90c7880e4fac701e212db8542c046bfb86f7a5b5baba4448

See more details on using hashes here.

File details

Details for the file gpt2Api_Client-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gpt2Api_Client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.3

File hashes

Hashes for gpt2Api_Client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb42a67ea539dea22dafcd6cb1bc8366fcde09d889365aef714a64efc6e4e3b4
MD5 51be0085822c74bf09fe316711a35d9c
BLAKE2b-256 5c53f7727812fc1679444d11e43f48b317e24f4170012f762fe7822a4dd04c7b

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