Nông Văn Thắng
commited on
Commit
•
c39652e
1
Parent(s):
a46cec7
main
Browse files- app.py +8 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -279,6 +279,14 @@ def read_logs():
|
|
279 |
return f.read()
|
280 |
|
281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
if __name__ == "__main__":
|
283 |
parser = argparse.ArgumentParser(
|
284 |
description="""viXTTS inference demo\n\n""",
|
|
|
279 |
return f.read()
|
280 |
|
281 |
|
282 |
+
def run_docker_setup():
|
283 |
+
"""Run the Docker setup commands."""
|
284 |
+
subprocess.run("python -m venv .env && . .env/bin/activate && git submodule update --init --recursive && cd TTS && git fetch --tags && git checkout 0.1.1 && echo 'Installing TTS...' && pip install --use-deprecated=legacy-resolver -e . -q && cd .. && echo 'Installing other requirements...' && pip install -r requirements.txt -q && echo 'Downloading Japanese/Chinese tokenizer...' && python -m unidic download && pip install --upgrade gradio && touch .env/ok", shell=True)
|
285 |
+
|
286 |
+
# Call the function at the appropriate place in your code
|
287 |
+
run_docker_setup()
|
288 |
+
|
289 |
+
|
290 |
if __name__ == "__main__":
|
291 |
parser = argparse.ArgumentParser(
|
292 |
description="""viXTTS inference demo\n\n""",
|
requirements.txt
CHANGED
@@ -61,4 +61,4 @@ encodec>=0.1.1
|
|
61 |
# deps for XTTS
|
62 |
unidecode>=1.3.2
|
63 |
num2words
|
64 |
-
spacy[ja]>=3
|
|
|
61 |
# deps for XTTS
|
62 |
unidecode>=1.3.2
|
63 |
num2words
|
64 |
+
spacy[ja]>=3
|