Jack Wu commited on
Commit
c59ecb5
·
1 Parent(s): 1896e81

Fix: move mmcv to requirements.txt, remove runtime install that caused infinite rebuild loop

Browse files
Files changed (2) hide show
  1. app.py +0 -13
  2. requirements.txt +1 -0
app.py CHANGED
@@ -9,24 +9,11 @@ Supported models
9
  """
10
 
11
  import os
12
- import subprocess
13
- import sys
14
  import tempfile
15
  import random
16
  from math import floor
17
  from pathlib import Path
18
 
19
- # ------------------------------------------------------------------ #
20
- # mmcv bootstrap (needed by TARO's CAVP encoder) #
21
- # ------------------------------------------------------------------ #
22
- try:
23
- import mmcv
24
- print("mmcv already installed")
25
- except ImportError:
26
- print("Installing mmcv with --no-build-isolation...")
27
- subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-build-isolation", "mmcv>=2.0.0"])
28
- print("mmcv installed successfully")
29
-
30
  import torch
31
  import numpy as np
32
  import soundfile as sf
 
9
  """
10
 
11
  import os
 
 
12
  import tempfile
13
  import random
14
  from math import floor
15
  from pathlib import Path
16
 
 
 
 
 
 
 
 
 
 
 
 
17
  import torch
18
  import numpy as np
19
  import soundfile as sf
requirements.txt CHANGED
@@ -6,6 +6,7 @@ h5py==3.10.0
6
  librosa==0.10.2.post1
7
  openmim
8
  mmengine
 
9
  numpy==1.23.5
10
  opencv-python==4.5.5.64
11
  soundfile==0.12.1
 
6
  librosa==0.10.2.post1
7
  openmim
8
  mmengine
9
+ mmcv>=2.0.0
10
  numpy==1.23.5
11
  opencv-python==4.5.5.64
12
  soundfile==0.12.1