Spaces:
Runtime error
Runtime error
mwojc
commited on
Commit
·
f9d8a6a
1
Parent(s):
de48764
simple gradio example
Browse files
app.py
CHANGED
@@ -1,13 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
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 |
-
['Dialogi niedobre… Bardzo niedobre dialogi są. W ogóle brak akcji jest. Nic się nie dzieje.'],
|
8 |
-
["Na przykład w jednym sklepie na półkach po rocznym leżeniu cukier ma 80 proc. cukru w cukrze, a w drugim sklepie ma 90 proc. cukru w cukrze, a sacharyna to ma w ogóle 500% cukru w cukrze."],
|
9 |
-
["Moja jest tylko racja i to święta racja. Bo nawet jak jest twoja, to moja jest mojsza niż twojsza. Że właśnie moja racja jest racja najmojsza!i"]
|
10 |
-
]
|
11 |
-
|
12 |
-
gr.Interface.load("huggingface/flax-community/papuGaPT2", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch()
|
13 |
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
gr.Interface.load("huggingface/flax-community/papuGaPT2").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|