Fix typo
Browse files
app.py
CHANGED
@@ -17,10 +17,11 @@ def generate(text, max_length=512):
|
|
17 |
|
18 |
title = "JP GPT Demo"
|
19 |
description = "Demo for generating text in Japanase using a GPT model"
|
|
|
20 |
examples = [['日本のeスポーツ障害者がステレオタイプを撃ち落とす', 128]]
|
21 |
gr.Interface(fn=generate, inputs=[gr.inputs.Textbox(lines=4, label="Prompt"),
|
22 |
-
gr.inputs.Slider(minimum=8, maximum=1024, step=8, default=64, label="
|
23 |
outputs=["text", "text"],
|
24 |
title=title, description=description,
|
25 |
-
|
26 |
examples=examples).launch(enable_queue=True)
|
|
|
17 |
|
18 |
title = "JP GPT Demo"
|
19 |
description = "Demo for generating text in Japanase using a GPT model"
|
20 |
+
article = "Built by Narrativa"
|
21 |
examples = [['日本のeスポーツ障害者がステレオタイプを撃ち落とす', 128]]
|
22 |
gr.Interface(fn=generate, inputs=[gr.inputs.Textbox(lines=4, label="Prompt"),
|
23 |
+
gr.inputs.Slider(minimum=8, maximum=1024, step=8, default=64, label="Number of tokens")],
|
24 |
outputs=["text", "text"],
|
25 |
title=title, description=description,
|
26 |
+
article= article,
|
27 |
examples=examples).launch(enable_queue=True)
|