hucruz commited on
Commit
05878aa
·
1 Parent(s): 36a4776

add examples

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, value=default_prompt, label='Prompt')
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)