Spaces:
Sleeping
Sleeping
IZERE HIRWA Roger
commited on
Commit
·
dfbe201
1
Parent(s):
ea9eac4
- Dockerfile +0 -1
- app.py +1 -0
Dockerfile
CHANGED
@@ -37,7 +37,6 @@ RUN mkdir -p /app/static/js && chmod -R 777 /app/static/js
|
|
37 |
RUN mkdir -p /app/templates && chmod -R 777 /app/templates
|
38 |
|
39 |
# Ensure static files are copied correctly
|
40 |
-
COPY static/ /app/static/
|
41 |
COPY templates/ /app/templates/
|
42 |
|
43 |
# Add SadTalker to Python path
|
|
|
37 |
RUN mkdir -p /app/templates && chmod -R 777 /app/templates
|
38 |
|
39 |
# Ensure static files are copied correctly
|
|
|
40 |
COPY templates/ /app/templates/
|
41 |
|
42 |
# Add SadTalker to Python path
|
app.py
CHANGED
@@ -46,6 +46,7 @@ def generate():
|
|
46 |
# Text-to-Speech (using gTTS)
|
47 |
from gtts import gTTS
|
48 |
tts = gTTS(text=text, lang='en')
|
|
|
49 |
tts.save(audio_path)
|
50 |
|
51 |
# Generate video (CPU optimized)
|
|
|
46 |
# Text-to-Speech (using gTTS)
|
47 |
from gtts import gTTS
|
48 |
tts = gTTS(text=text, lang='en')
|
49 |
+
|
50 |
tts.save(audio_path)
|
51 |
|
52 |
# Generate video (CPU optimized)
|