sabahat-shakeel commited on
Commit
d7399f7
·
verified ·
1 Parent(s): b81e260

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,8 +84,8 @@ if st.button("Send") and user_input:
84
  input_ids,
85
  max_length=500, # Increase maximum length for longer responses
86
  num_return_sequences=1,
87
- temperature=0.7, # Adjust for creativity (lower is more focused, higher is more diverse)
88
- top_p=0.9, # Use nucleus sampling for diversity
89
  top_k=50, # Limit to top-k tokens for more controlled output
90
  pad_token_id=tokenizer.eos_token_id
91
  )
 
84
  input_ids,
85
  max_length=500, # Increase maximum length for longer responses
86
  num_return_sequences=1,
87
+ temperature=0.2, # Adjust for creativity (lower is more focused, higher is more diverse)
88
+ top_p=0.5, # Use nucleus sampling for diversity
89
  top_k=50, # Limit to top-k tokens for more controlled output
90
  pad_token_id=tokenizer.eos_token_id
91
  )