YinmingHuang commited on
Commit
75e7c94
·
1 Parent(s): 7e2a090

add spaces

Browse files
Files changed (2) hide show
  1. app.py +4 -3
  2. requirements.txt +0 -4
app.py CHANGED
@@ -24,6 +24,7 @@ import subprocess
24
  from moviepy.editor import VideoFileClip
25
  from huggingface_hub import snapshot_download
26
  import shutil
 
27
  try:
28
  from audio_separator.separator import Separator
29
  except:
@@ -150,7 +151,7 @@ pipeline = WanI2VTalkingInferenceLongPipeline(
150
  wav2vec=wav2vec,
151
  )
152
 
153
-
154
  def generate(
155
  GPU_memory_mode,
156
  teacache_threshold,
@@ -421,13 +422,13 @@ BANNER_HTML = """
421
 
422
  BANNER_CSS = """
423
  .hero{display:flex;align-items:center;gap:18px;padding:18px;border-radius:14px;
424
- background:#111;color:#fff;margin-bottom:12px}
425
  .brand-text{font-weight:800;letter-spacing:2px}
426
  .brand img{height:46px}
427
  .titles h1{font-size:28px;margin:0 0 6px 0}
428
  .badges{display:flex;gap:10px;flex-wrap:wrap}
429
  .badge img{height:22px}
430
- .divider{border:0;border-top:1px solid rgba(255,255,255,0.18);margin:6px 0 18px}
431
  """
432
 
433
 
 
24
  from moviepy.editor import VideoFileClip
25
  from huggingface_hub import snapshot_download
26
  import shutil
27
+ import spaces
28
  try:
29
  from audio_separator.separator import Separator
30
  except:
 
151
  wav2vec=wav2vec,
152
  )
153
 
154
+ @spaces.GPU(duration=6000)
155
  def generate(
156
  GPU_memory_mode,
157
  teacache_threshold,
 
422
 
423
  BANNER_CSS = """
424
  .hero{display:flex;align-items:center;gap:18px;padding:18px;border-radius:14px;
425
+ color:inherit;margin-bottom:12px}
426
  .brand-text{font-weight:800;letter-spacing:2px}
427
  .brand img{height:46px}
428
  .titles h1{font-size:28px;margin:0 0 6px 0}
429
  .badges{display:flex;gap:10px;flex-wrap:wrap}
430
  .badge img{height:22px}
431
+ .divider{border:0;border-top:1px solid rgba(0,0,0,0.12);margin:6px 0 18px}
432
  """
433
 
434
 
requirements.txt CHANGED
@@ -4,12 +4,10 @@ einops
4
  safetensors
5
  timm
6
  tomesd
7
- torch==2.7.0
8
  torchdiffeq
9
  torchsde
10
  decord
11
  datasets
12
- torchvision==0.22.0
13
  opencv-python>=4.9.0.80
14
  diffusers==0.30.1
15
  transformers==4.51.3
@@ -23,7 +21,6 @@ imageio-ffmpeg
23
  gradio>=5.0.0
24
  numpy>=1.23.5,<2
25
  scikit-image
26
- opencv-python
27
  omegaconf
28
  SentencePiece
29
  albumentations
@@ -33,5 +30,4 @@ tensorboard
33
  beautifulsoup4
34
  ftfy
35
  librosa
36
- torchaudio==2.7.0
37
  moviepy==1.0.3
 
4
  safetensors
5
  timm
6
  tomesd
 
7
  torchdiffeq
8
  torchsde
9
  decord
10
  datasets
 
11
  opencv-python>=4.9.0.80
12
  diffusers==0.30.1
13
  transformers==4.51.3
 
21
  gradio>=5.0.0
22
  numpy>=1.23.5,<2
23
  scikit-image
 
24
  omegaconf
25
  SentencePiece
26
  albumentations
 
30
  beautifulsoup4
31
  ftfy
32
  librosa
 
33
  moviepy==1.0.3