mwojc commited on
Commit
de48764
·
1 Parent(s): aa34235

Adapt for papuGaPT2

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,10 +4,10 @@ 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
 
 
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