Update max_length
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ 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=
|
23 |
outputs=["text", "text"],
|
24 |
title=title, description=description,
|
25 |
# article= article,
|
|
|
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="Numbers of tokens")],
|
23 |
outputs=["text", "text"],
|
24 |
title=title, description=description,
|
25 |
# article= article,
|