Spaces:
Runtime error
Runtime error
Pawan Kumar Pradhan
commited on
Commit
·
6853642
1
Parent(s):
4995b83
["COQUI_TOS_AGREED"] = "1"
Browse files
app.py
CHANGED
@@ -3,11 +3,13 @@ import whisper
|
|
3 |
from translate import Translator
|
4 |
from TTS.api import TTS
|
5 |
import uuid
|
|
|
6 |
from pathlib import Path
|
7 |
|
8 |
|
9 |
model = whisper.load_model("base")
|
10 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2")
|
|
|
11 |
|
12 |
def v2vtranslate(audiofile):
|
13 |
|
|
|
3 |
from translate import Translator
|
4 |
from TTS.api import TTS
|
5 |
import uuid
|
6 |
+
import os
|
7 |
from pathlib import Path
|
8 |
|
9 |
|
10 |
model = whisper.load_model("base")
|
11 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2")
|
12 |
+
os.environ["COQUI_TOS_AGREED"] = "1"
|
13 |
|
14 |
def v2vtranslate(audiofile):
|
15 |
|