smgriffin commited on
Commit
030a334
·
1 Parent(s): 94926ff

Add application file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,7 +13,7 @@ def generate_lyrics():
13
  output = model.generate(
14
  input_ids,
15
  max_length=300, # Maximum number of tokens
16
- temperature=0.9, # Adjust randomness
17
  top_k=50, # Top-k sampling
18
  top_p=0.95, # Nucleus sampling
19
  do_sample=True, # Enable stochastic decoding
@@ -24,9 +24,9 @@ def generate_lyrics():
24
  interface = gr.Interface(
25
  fn=generate_lyrics,
26
  inputs=None, # No input arguments
27
- outputs=gr.Textbox(label="Generated Lyrics"),
28
  title="24thankyou lyrics generator",
29
- description="click 'Generate' to see make new lyrics from the most underrated midwest indie band.",
30
  theme="compact",
31
  )
32
 
 
13
  output = model.generate(
14
  input_ids,
15
  max_length=300, # Maximum number of tokens
16
+ temperature=0.7, # Adjust randomness
17
  top_k=50, # Top-k sampling
18
  top_p=0.95, # Nucleus sampling
19
  do_sample=True, # Enable stochastic decoding
 
24
  interface = gr.Interface(
25
  fn=generate_lyrics,
26
  inputs=None, # No input arguments
27
+ outputs=gr.Textbox(label="generating..."),
28
  title="24thankyou lyrics generator",
29
+ description="click 'generate' to see make new 24thankyou lyrics",
30
  theme="compact",
31
  )
32