Update app.py
Browse files
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=
|
20 |
num_return_sequences=1,
|
21 |
-
temperature=0.
|
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 |
)
|