Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -454,7 +454,7 @@ class LlamaGenerator(BaseGenerator):
|
|
| 454 |
self,
|
| 455 |
context: str,
|
| 456 |
user_input: str,
|
| 457 |
-
chat_history: List[Tuple[str, str]],
|
| 458 |
model_kwargs: Dict[str, Any],
|
| 459 |
max_history_turns: int = 3,
|
| 460 |
strategy: str = "default",
|
|
@@ -727,7 +727,7 @@ async def generate(
|
|
| 727 |
context=request.context or "",
|
| 728 |
user_input=user_input,
|
| 729 |
chat_history=chat_history,
|
| 730 |
-
|
| 731 |
)
|
| 732 |
|
| 733 |
return GenerationResponse(
|
|
|
|
| 454 |
self,
|
| 455 |
context: str,
|
| 456 |
user_input: str,
|
| 457 |
+
chat_history: List[Tuple[str, str]],
|
| 458 |
model_kwargs: Dict[str, Any],
|
| 459 |
max_history_turns: int = 3,
|
| 460 |
strategy: str = "default",
|
|
|
|
| 727 |
context=request.context or "",
|
| 728 |
user_input=user_input,
|
| 729 |
chat_history=chat_history,
|
| 730 |
+
model_kwargs=config
|
| 731 |
)
|
| 732 |
|
| 733 |
return GenerationResponse(
|