Update app.py
Browse files
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 |
-
|
| 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 |
-
|
| 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
|