Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def generate_tweet(prompt):
|
|
15 |
input_prompt = f"{prompt}\n\nTweet:" # Format input for clarity
|
16 |
output = generator(
|
17 |
input_prompt,
|
18 |
-
max_length=
|
19 |
num_return_sequences=1,
|
20 |
temperature=0.7, # Control creativity
|
21 |
top_p=0.9, # Use nucleus sampling
|
|
|
15 |
input_prompt = f"{prompt}\n\nTweet:" # Format input for clarity
|
16 |
output = generator(
|
17 |
input_prompt,
|
18 |
+
max_length=150, # Limit the total length of the generated text
|
19 |
num_return_sequences=1,
|
20 |
temperature=0.7, # Control creativity
|
21 |
top_p=0.9, # Use nucleus sampling
|