Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ if student_question:
|
|
42 |
# Call the pipeline with adjusted parameters
|
43 |
response = model_pipeline(
|
44 |
prompt,
|
45 |
-
max_length=
|
46 |
temperature=temperature, # Control randomness
|
47 |
top_p=top_p, # Nucleus sampling
|
48 |
top_k=top_k, # Top-k sampling
|
|
|
42 |
# Call the pipeline with adjusted parameters
|
43 |
response = model_pipeline(
|
44 |
prompt,
|
45 |
+
max_length=75, # Adjust this based on desired response length
|
46 |
temperature=temperature, # Control randomness
|
47 |
top_p=top_p, # Nucleus sampling
|
48 |
top_k=top_k, # Top-k sampling
|