textgen6b / app.py
un-index
t
1ff347c
raw
history blame
589 Bytes
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", api_key="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",
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
title=title, examples=examples).launch();
# import gradio as gr
# def greet(name):
# return "Hello " + name + "!!"
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
# iface.launch()