add examples
Browse files
app.py
CHANGED
@@ -44,10 +44,11 @@ iface = gr.Interface(fn=test,
|
|
44 |
title= "GPT2 Model",
|
45 |
description = description,
|
46 |
inputs=[
|
47 |
-
gr.inputs.Textbox(lines=4,
|
48 |
],
|
49 |
outputs=[
|
50 |
gr.outputs.Textbox(label="Tu poema"),
|
51 |
-
]
|
|
|
52 |
)
|
53 |
iface.launch(enable_queue=True)
|
|
|
44 |
title= "GPT2 Model",
|
45 |
description = description,
|
46 |
inputs=[
|
47 |
+
gr.inputs.Textbox(lines=4, placeholder="Prompt", label='Prompt')
|
48 |
],
|
49 |
outputs=[
|
50 |
gr.outputs.Textbox(label="Tu poema"),
|
51 |
+
],
|
52 |
+
examples= [default_prompt]
|
53 |
)
|
54 |
iface.launch(enable_queue=True)
|