rish13 commited on
Commit
e1edd9d
·
verified ·
1 Parent(s): 01ca18e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,9 +16,9 @@ def generate_response(prompt):
16
  # Generate text from the model
17
  response = model(
18
  prompt,
19
- max_length=100, # Adjusted to generate shorter text
20
  num_return_sequences=1,
21
- temperature=0.7, # Increased to add more randomness
22
  top_k=100, # Increased to allow a wider selection of words
23
  top_p=0.95 # Slightly increased cumulative probability threshold
24
  )
 
16
  # Generate text from the model
17
  response = model(
18
  prompt,
19
+ max_length=70, # Adjusted to generate shorter text
20
  num_return_sequences=1,
21
+ temperature=0.6, # Increased to add more randomness
22
  top_k=100, # Increased to allow a wider selection of words
23
  top_p=0.95 # Slightly increased cumulative probability threshold
24
  )