Update test.py
Browse files
test.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from xtts import predict, get_tts
|
3 |
import os
|
|
|
4 |
os.environ["COQUI_TOS_AGREED"]="1"
|
|
|
|
|
5 |
|
6 |
get_tts(True)
|
7 |
demo=gr.Interface(predict, inputs=["text","text","text"], outputs=gr.Audio())
|
|
|
1 |
import gradio as gr
|
2 |
from xtts import predict, get_tts
|
3 |
import os
|
4 |
+
|
5 |
os.environ["COQUI_TOS_AGREED"]="1"
|
6 |
+
st = os.stat("ffmpeg")
|
7 |
+
os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC)
|
8 |
|
9 |
get_tts(True)
|
10 |
demo=gr.Interface(predict, inputs=["text","text","text"], outputs=gr.Audio())
|