Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ def process_history(history: list[dict]) -> list[dict]:
|
|
| 164 |
|
| 165 |
|
| 166 |
@spaces.GPU(duration=120)
|
| 167 |
-
def run(message: dict, history: list[dict], system_prompt: str = "You are a helpful assistant who always provides
|
| 168 |
if not validate_media_constraints(message, history):
|
| 169 |
yield ""
|
| 170 |
return
|
|
|
|
| 164 |
|
| 165 |
|
| 166 |
@spaces.GPU(duration=120)
|
| 167 |
+
def run(message: dict, history: list[dict], system_prompt: str = "You are a helpful assistant who always provides helpful answer", max_new_tokens: int = 1024) -> Iterator[str]:
|
| 168 |
if not validate_media_constraints(message, history):
|
| 169 |
yield ""
|
| 170 |
return
|