rish13 commited on
Commit
f7750ee
·
verified ·
1 Parent(s): fc4cc2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,10 +22,10 @@ def generate_response(prompt):
22
  # Generate text from the model
23
  response = model(
24
  prompt,
25
- max_length=50, # Adjusted to generate shorter text
26
  num_return_sequences=1,
27
- temperature=0.6, # Increased to add more randomness
28
- top_k=100, # Increased to allow a wider selection of words
29
  top_p=0.95 # Slightly increased cumulative probability threshold
30
  )
31
 
 
22
  # Generate text from the model
23
  response = model(
24
  prompt,
25
+ max_length=130, # Adjusted to generate shorter text
26
  num_return_sequences=1,
27
+ temperature=0.7, # Increased to add more randomness
28
+ top_k=130, # Increased to allow a wider selection of words
29
  top_p=0.95 # Slightly increased cumulative probability threshold
30
  )
31