prithivMLmods commited on
Commit
d422584
·
verified ·
1 Parent(s): 67191fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=120)
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 ""