Update app.py
Browse files
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=
|
| 26 |
num_return_sequences=1,
|
| 27 |
-
temperature=0.
|
| 28 |
-
top_k=
|
| 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 |
|