Socold commited on
Commit
f251b99
·
verified ·
1 Parent(s): e0252a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -10,7 +10,14 @@ if not os.path.exists("VV_Clone_1"):
10
  sys.path.insert(0, "VV_Clone_1")
11
 
12
  # Installer les dépendances
13
- subprocess.run([sys.executable, "-m", "pip", "install", "-q", "-r", "VV_Clone_1/requirements.txt"])
 
 
 
 
 
 
 
14
 
15
  import torch
16
  import gradio as gr
 
10
  sys.path.insert(0, "VV_Clone_1")
11
 
12
  # Installer les dépendances
13
+ #subprocess.run([sys.executable, "-m", "pip", "install", "-q", "-r", "VV_Clone_1/requirements.txt"])
14
+ # Au lieu de chercher requirements.txt, installer directement les dépendances
15
+ subprocess.run([sys.executable, "-m", "pip", "install", "-q",
16
+ "torch", "transformers>=4.40.0", "accelerate", "gradio>=4.0.0",
17
+ "soundfile", "librosa", "scipy", "numpy", "ffmpeg-python"])
18
+
19
+ # Installer le projet VV_Clone_1
20
+ subprocess.run([sys.executable, "-m", "pip", "install", "-e", "VV_Clone_1"])
21
 
22
  import torch
23
  import gradio as gr