miwojc commited on
Commit
a04d99e
·
1 Parent(s): a2cb919

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import gradio as gr
2
- title = "papuGaPT2 (Polish GPT2) model demo"
3
- description = "This demo showcases the text generation capabilities for papuGaPT2, a GPT2 model pre-trained from scratch using OSCAR dataset. To use it, add your prompt text, or click one of the examples to load them. The model will generate text based on the entered prompt."
 
4
  examples = [
5
- ['Dialogi niedobre… Bardzo niedobre dialogi są. W ogóle brak akcji jest. Nic się nie dzieje.'],
6
- ["Na przykład w jednym sklepie na półkach po rocznym leżeniu cukier ma 80 proc. cukru w cukrze,"],
7
- ["Moja jest tylko racja i to święta racja. Bo nawet jak jest twoja,"]
8
  ]
9
  gr.Interface.load("huggingface/flax-community/papuGaPT2", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description, examples=examples).launch()
 
1
  import gradio as gr
2
+ title = "papuGaPT2 (Polish GPT2) language model demo"
3
+ description = """This demo showcases the text generation capabilities for papuGaPT2, a GPT2 model pre-trained from scratch using OSCAR dataset. To use it, add your text to 'Input Text' box, or click one of the below examples to load them. The model will generate text based on the entered text (prompt).
4
+ For more information see the [model card](https://huggingface.co/flax-community/papuGaPT2) """
5
  examples = [
6
+ ['Najsmaczniejszy owoc to'],
7
+ ["Największym polskim poetą był"],
8
+ ["Cześć mam na imię"]
9
  ]
10
  gr.Interface.load("huggingface/flax-community/papuGaPT2", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description, examples=examples).launch()