Update app.py
Browse files
app.py
CHANGED
@@ -705,7 +705,7 @@ Provide your suggestions in a Python dictionary format."""
|
|
705 |
llm = HuggingFacePipeline.from_model_id(
|
706 |
model_id="google/flan-t5-large",
|
707 |
task="text2text-generation",
|
708 |
-
model_kwargs={"temperature": 0.7, "
|
709 |
)
|
710 |
|
711 |
# Generate suggestions
|
|
|
705 |
llm = HuggingFacePipeline.from_model_id(
|
706 |
model_id="google/flan-t5-large",
|
707 |
task="text2text-generation",
|
708 |
+
model_kwargs={"temperature": 0.7, "max_length": 512}, # Changed max_length to max_new_tokens
|
709 |
)
|
710 |
|
711 |
# Generate suggestions
|