EzhirkoArulmozhi commited on
Commit
5fc1bb6
·
verified ·
1 Parent(s): f9b6658

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -71,7 +71,7 @@ def generate_text(prompt, max_length="25", num_samples="1"):
71
  iface = gr.Interface(
72
  fn=generate_text,
73
  inputs=[
74
- gr.Textbox(label="Prompt", value="We are accounted poor citizens, the"),
75
  gr.Radio(choices=["25", "50", "75", "100"], value="100", label="Max Length", type="value"),
76
  gr.Radio(choices=["1", "2", "3"], value="1", label="Number of Samples", type="value"),
77
  ],
@@ -79,12 +79,9 @@ iface = gr.Interface(
79
  title="Shakespeare-style Text Generator",
80
  description="Enter a prompt to generate Shakespeare-style text continuation",
81
  examples=[
82
- ["O Romeo, Romeo, wherefore art thou", 100, 1],
83
- ["To be, or not to be, that is", 60, 2],
84
- ["Friends, Romans, countrymen, lend me", 50, 3],
85
- ["All the world's a stage, and all the", 100, 1],
86
- ["Now is the winter of our discontent", 100, 1],
87
- ["If music be the food of love,", 100, 1],
88
  ]
89
  )
90
 
 
71
  iface = gr.Interface(
72
  fn=generate_text,
73
  inputs=[
74
+ gr.Textbox(label="Prompt", value="Before we proceed any further, hear"),
75
  gr.Radio(choices=["25", "50", "75", "100"], value="100", label="Max Length", type="value"),
76
  gr.Radio(choices=["1", "2", "3"], value="1", label="Number of Samples", type="value"),
77
  ],
 
79
  title="Shakespeare-style Text Generator",
80
  description="Enter a prompt to generate Shakespeare-style text continuation",
81
  examples=[
82
+ ["No more talking on't; let it be done", 50, 1],
83
+ ["We are accounted poor citizens", 100, 2],
84
+ ["What he cannot help in his nature", 75, 3],
 
 
 
85
  ]
86
  )
87