Manasa1 commited on
Commit
30480a5
·
verified ·
1 Parent(s): eafd83e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=50, # 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
 
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