thangsds commited on
Commit
c030710
·
verified ·
1 Parent(s): 69d8766

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +24 -0
  2. app.py +2 -7
  3. requirements.txt +2 -3
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Cài các package hệ thống cần thiết
4
+ RUN apt-get update && apt-get install -y \
5
+ git \
6
+ ffmpeg \
7
+ espeak-ng \
8
+ libsndfile1 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ WORKDIR /app
12
+
13
+ # Copy file requirements
14
+ COPY requirements.txt .
15
+
16
+ # Cài python packages
17
+ RUN pip install --upgrade pip
18
+ RUN pip install -r requirements.txt
19
+
20
+ # Copy toàn bộ code
21
+ COPY . .
22
+
23
+ # Chạy app
24
+ CMD ["python", "app.py"]
app.py CHANGED
@@ -1,7 +1,2 @@
1
- import os
2
- os.system("git clone https://github.com/pnnbao97/VieNeu-TTS.git")
3
-
4
- os.chdir("VieNeu-TTS")
5
-
6
- # Chạy phiên bản GGUF nhẹ
7
- os.system("python web_stream_gguf.py")
 
1
+ from gradio_app import demo
2
+ demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
requirements.txt CHANGED
@@ -3,6 +3,5 @@ torchaudio
3
  transformers
4
  gradio==4.44.1
5
  neucodec
6
- vieneu
7
- llama-cpp-python
8
- espeakng
 
3
  transformers
4
  gradio==4.44.1
5
  neucodec
6
+ phonemizer
7
+ git+https://github.com/pnnbao97/VieNeu-TTS.git