Claude commited on
Commit
3b71155
·
1 Parent(s): 9b4a5fa

feat: switch to A100 dedicated GPU, extend timeout to 600s

Browse files

- Set suggested_hardware: a100-large in README.md
- Extend @spaces.GPU timeout from 100s to 600s (10 min)
- Extend SmolVLM timeout from 60s to 120s
- Fixes GPU timeout failure on high-res 12s+ video generation

Files changed (2) hide show
  1. README.md +1 -0
  2. app.py +2 -2
README.md CHANGED
@@ -9,6 +9,7 @@ python_version: '3.12'
9
  app_file: app.py
10
  pinned: false
11
  short_description: Portrait animation & lipsync with LTX 2.3
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  app_file: app.py
10
  pinned: false
11
  short_description: Portrait animation & lipsync with LTX 2.3
12
+ suggested_hardware: a100-large
13
  ---
14
 
15
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -916,7 +916,7 @@ def _extract_audio_from_video(video_path: str) -> str | None:
916
  return None
917
 
918
 
919
- @spaces.GPU(duration=100)
920
  @torch.inference_mode()
921
  def generate_video(
922
  input_image,
@@ -1081,7 +1081,7 @@ def _load_vlm():
1081
  return _vlm_model, _vlm_processor
1082
 
1083
 
1084
- @spaces.GPU(duration=60)
1085
  @torch.inference_mode()
1086
  def describe_video_motion(video_path, auto_describe=True):
1087
  """Use SmolVLM2 to generate a motion-only description of a video."""
 
916
  return None
917
 
918
 
919
+ @spaces.GPU(duration=600)
920
  @torch.inference_mode()
921
  def generate_video(
922
  input_image,
 
1081
  return _vlm_model, _vlm_processor
1082
 
1083
 
1084
+ @spaces.GPU(duration=120)
1085
  @torch.inference_mode()
1086
  def describe_video_motion(video_path, auto_describe=True):
1087
  """Use SmolVLM2 to generate a motion-only description of a video."""