File size: 932 Bytes
baffed8
 
 
5067310
a6f53e7
5067310
baffed8
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
title = "GPT-J-6B Demo"
description = "Gradio Demo for GPT-J 6B, a Transformer model trained using Ben Wang's Mesh Transformer JAX. 'GPT-J' refers to the class of model, while '6B' represents the number of trainable parameters."
article = "<p style='text-align: center'><a href='https://www.narrativa.com/' target='_blank'>Created by: Narrativa

About Narrativa: Natural Language Generation (NLG) | Gabriele, our machine learning-based platform, builds and deploys natural language solutions. #NLG #AI</a></p>"
examples = [
    ["Narrativa is an NLP/NLG company that"],
    ["from transformers import AutoTokenizer"],
    ["Narrativa's CTO, Alberto Moratilla and Javier (CSO) are"]
]
gr.Interface.load("huggingface/EleutherAI/gpt-j-6B", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
                  title=title, description=description, article=article, examples=examples, enable_queue=True).launch()