Giter VIP home page Giter VIP logo

gpt2-rick-n-morty-with-spongebob's Introduction

GPT2-Rick-n-Morty-with-SpongeBob

Run on Ainize

This project generates Rick and Morty with SpongeBob script using GPT-2 model.

Fine tuning data 1: Kaggle

Fine tuning data 2: Kaggle

Model download: Hugging face

Fine-tuning notebook: colab

Model information

Base model: e-tony/gpt2-rnm
Epoch: 2
Train runtime: 790.0612 secs
Loss: 2.8569

How to use:

* First, Choose Rick and Morty or SpongeBob character name.
* Second, Fill what the character will say in text. This will be base of script.
* And then, Fill number in length. Text is created as long as "length". I recommend between 100 and 300.
* If length is so big, generate time will be long.

Post parameter

name: The Rick and Morty and SpongeBob character name.
text: The base of script.
length: The size of generated text.

Output foramt

{"0": [[character name, dialog], [character name, dialog], ...]}

Image reference

static/IMG_Reference.md

* With CLI *

Input example

curl -X POST "https://master-gpt2-rick-n-morty-with-sponge-bob-fpem123.endpoint.ainize.ai/gen" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "name=Rick" -F "text=Morty! SpongeBob!" -F "length=100"

Output example

{
  "0": [
    [
      "Rick",
      " Morty! SpongeBob! You're the guy!"
    ],
    [
      "SpongeBob",
      " Oh, hi, Morty!"
    ],
    [
      "Rick",
      " I need to hear the story for you because here it is."
    ],
    [
      "Morty",
      " [sighs and falls on his bed playing Bubble Bass music, crying] My goodness, I wish I could live in peace for the rest of my life! [laughs] [walks away]"
    ],
    [
      "Rick",
      " Well, that's not all. [SpongeBob and Rick get into bed as they are"
    ]
  ]
}

* With swagger *

API page: Ainize

* With a Demo *

Demo page: End-point



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.