Spaces:
Runtime error
Runtime error
mwojc
commited on
Commit
·
aa34235
1
Parent(s):
9649162
gptneo example
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
-
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
title = "GPT-Neo Demo"
|
4 |
+
description = "demo for GPT-Neo by EleutherAI for text generation. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
5 |
+
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>"
|
6 |
+
examples = [
|
7 |
+
['The tower is 324 metres (1,063 ft) tall,'],
|
8 |
+
["The Moon's orbit around Earth has"],
|
9 |
+
["The smooth Borealis basin in the Northern Hemisphere covers 40%"]
|
10 |
+
]
|
11 |
+
|
12 |
+
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()
|
13 |
|
|
|
|