Git Product home page Git Product logo

gpt2-sherlock's Introduction

GPT2 sherlock

Run on Ainize

Model information

Base model: gpt-2 large
Epoch: 20
Loss: 0.15
Dataset:Sherlock (https://www.kaggle.com/idevji1/sherlock-holmes-stories)
License:CC0: Public Domain

About

this model is based on gpt2-large and fine tuned with sherlock script dataset.
it generates sherlock scrip related to your input keyword.
first, input your keyword
second, wait for result

How to use

three ways to use Gpt2 sherlock
	1.  CLI
	2.  Swagger
	3.  Demo

GET parameter

keyword: input your keyword than you will check out the sherlock script related to keyword

Output format

generated text

With CLI

Input example

curl -X GET "https://master-gpt2-sherlock-ha-mulan.endpoint.ainize.ai/api/?keyword=murder" -H "accept: string"

Output example

    murderous outbursts and it seemed to me that
    to speak at all was very painful to him and that his will all
    through was overriding his inclinations

    it is a very delicate thing said he one does not like to speak of
    ones domestic affairs to strangers it seems dreadful to discuss the
    conduct of ones wife with two men whom i have never seen before
    it is horrible to have to do it but i have got to the end of my tether
    and i must have advice

    my dear mr grant munro began holmes

    our visitor sprang from his chair what he cried you know my
    name

    if you wish to preserve your incognito said holmes smiling i suggest that you cease to
    write your name upon the lining of your hat or else that you turn the crown
    towards the person whom you are addressing i was about to say that my friend and i
    have been expecting you come round for some months
    therefore i had no difficulty in finding you

    the doctor flushed with anger

    i have been expecting you for some time said he but you must have forgotten my advice or i was not to

With swagger

API page: Ainize

With a Demo

Demo page: End-point

gpt2-sherlock's People

Contributors

gkswjdzz avatar hanjeonglee avatar yoonseokham avatar

Watchers

 avatar  avatar

Forkers

hams-workspace

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.