Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
88 |
-
top_p=0.
|
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 |
)
|