gpt-j-6b / app.py
singh5587's picture
create app.py
0d77380
import gradio as gr
title = "GPT-J-6B"
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. \
To use it, simply add your text, or click one of the examples to load them. \
"
examples = [
['The tower is 324 metres (1,063 ft) tall,'],
["The Mars's orbit around Sun has"],
["The science and the math combination has"],
["The smooth Borealis basin in the Northern Hemisphere covers 40%"]
]
gr.Interface.load("huggingface/EleutherAI/gpt-j-6B",
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
title=title,description=description,
examples=examples,
enable_queue=True).launch()