Add application file
Browse files
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.
|
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="
|
28 |
title="24thankyou lyrics generator",
|
29 |
-
description="click '
|
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 |
|