marcosremar2 commited on
Commit
18dcc68
·
1 Parent(s): e7a98ef
Files changed (2) hide show
  1. requirements_spaces.txt +5 -0
  2. setup_huggingface.sh +4 -0
requirements_spaces.txt CHANGED
@@ -1,4 +1,9 @@
1
  pip==24.0
 
 
 
 
 
2
  torch>=2.0.0
3
  numpy>=1.24.0
4
  transformers>=4.34.0
 
1
  pip==24.0
2
+ # --- hot-fix for the OmegaConf metadata problem ---
3
+ omegaconf @ git+https://github.com/omry/omegaconf.git@fd9109cff74d05794e14562dcbdde442eb24635d
4
+ hydra-core==1.0.7 # still required by fairseq 0.12
5
+ # --------------------------------------------------
6
+
7
  torch>=2.0.0
8
  numpy>=1.24.0
9
  transformers>=4.34.0
setup_huggingface.sh CHANGED
@@ -5,6 +5,10 @@ set -e
5
 
6
  echo "Setting up LLaMA-Omni on Hugging Face Spaces..."
7
 
 
 
 
 
8
  # Create necessary directories
9
  mkdir -p models/speech_encoder vocoder
10
 
 
5
 
6
  echo "Setting up LLaMA-Omni on Hugging Face Spaces..."
7
 
8
+ # Downgrade pip to avoid OmegaConf metadata validation issues
9
+ echo "Downgrading pip to version 24.0 to avoid OmegaConf metadata validation issues..."
10
+ python -m pip install --upgrade "pip<24.1"
11
+
12
  # Create necessary directories
13
  mkdir -p models/speech_encoder vocoder
14