Nanny7 commited on
Commit
d4074fa
·
1 Parent(s): ceabd63

Fix HF Spaces: use sys.path instead of -e .

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,6 +1,10 @@
1
  """Hugging Face Spaces entry point for Audio Video Generator."""
2
 
3
  import os
 
 
 
 
4
 
5
  # Set Hugging Face cache dir for models
6
  os.environ["HF_HOME"] = "/tmp/huggingface"
 
1
  """Hugging Face Spaces entry point for Audio Video Generator."""
2
 
3
  import os
4
+ import sys
5
+
6
+ # Add src to path for HF Spaces
7
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
8
 
9
  # Set Hugging Face cache dir for models
10
  os.environ["HF_HOME"] = "/tmp/huggingface"
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  # Core dependencies for audio-video-generator
2
- -e .
3
  openai-whisper>=20231117
4
  moviepy>=1.0.3
5
  gradio>=4.0.0
 
1
  # Core dependencies for audio-video-generator
 
2
  openai-whisper>=20231117
3
  moviepy>=1.0.3
4
  gradio>=4.0.0