Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
|
|
4 |
examples = [
|
5 |
-
['
|
6 |
-
["
|
7 |
-
["
|
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()
|