Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def process_history(history: list[dict]) -> list[dict]:
|
|
168 |
current_user_content.append({"type": "image", "url": content[0]})
|
169 |
return messages
|
170 |
|
171 |
-
@spaces.GPU(duration=
|
172 |
def run(message: dict, history: list[dict], system_prompt: str = "", max_new_tokens: int = 512) -> Iterator[str]:
|
173 |
if not validate_media_constraints(message, history):
|
174 |
yield ""
|
|
|
168 |
current_user_content.append({"type": "image", "url": content[0]})
|
169 |
return messages
|
170 |
|
171 |
+
@spaces.GPU(duration=40)
|
172 |
def run(message: dict, history: list[dict], system_prompt: str = "", max_new_tokens: int = 512) -> Iterator[str]:
|
173 |
if not validate_media_constraints(message, history):
|
174 |
yield ""
|