YatharthS commited on
Commit
a163a13
·
verified ·
1 Parent(s): a79c9b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -2,16 +2,13 @@ import os
2
  import sys
3
  import subprocess
4
 
5
- # 1. Clone the repo
6
  if not os.path.exists("LuxTTS"):
7
  subprocess.run(["git", "clone", "https://github.com/ysharma3501/LuxTTS.git"])
8
 
9
- # 2. Install requirements from the cloned folder
10
- # We use sys.executable to ensure it installs to the Space's current environment
11
  subprocess.run([sys.executable, "-m", "pip", "install", "-r", "LuxTTS/requirements.txt"])
12
 
13
- # 3. Add the folder to the Python path
14
- # This allows 'from zipvoice.luxtts import LuxTTS' to work
15
  sys.path.append(os.path.abspath("LuxTTS"))
16
 
17
  import gradio as gr
 
2
  import sys
3
  import subprocess
4
 
 
5
  if not os.path.exists("LuxTTS"):
6
  subprocess.run(["git", "clone", "https://github.com/ysharma3501/LuxTTS.git"])
7
 
8
+
 
9
  subprocess.run([sys.executable, "-m", "pip", "install", "-r", "LuxTTS/requirements.txt"])
10
 
11
+
 
12
  sys.path.append(os.path.abspath("LuxTTS"))
13
 
14
  import gradio as gr