File size: 805 Bytes
c6e7238 c6dde70 c6e7238 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
title = "GPT-Neo Demo"
description = "An implementation of model & data parallel GPT3-like models using the mesh-tensorflow library. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
article = "<p style='text-align: center'><a href='http://github.com/eleutherai/gpt-neo'>GPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow</a></p>"
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-neo-2.7B", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch() |