gradio/demo/gpt_j/run.py
aliabid94 b4d9825409
Website: WIP (#328)
Ported gradio website into gradio repository, now launched as a docker service from gradio/website
2021-12-13 22:02:19 -08:00

13 lines
380 B
Python

import gradio as gr
title = "GPT-J-6B"
examples = [
['The tower is 324 metres (1,063 ft) tall,'],
["The Moon's orbit around Earth 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, examples=examples).launch();