Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ os.environ["XDG_CACHE_HOME"] = "/tmp"
|
|
| 12 |
os.environ["XDG_CONFIG_HOME"] = "/tmp"
|
| 13 |
os.environ["NUMBA_DISABLE_CACHE"] = "1"
|
| 14 |
os.makedirs("/tmp/huggingface", exist_ok=True)
|
|
|
|
| 15 |
import gradio as gr
|
| 16 |
from openvoice.api import ToneColorConverter
|
| 17 |
from openvoice import se_extractor
|
|
@@ -65,7 +66,7 @@ demo = gr.Interface(
|
|
| 65 |
gr.Audio(type="filepath", label="Upload a Reference Voice (.wav)")
|
| 66 |
],
|
| 67 |
outputs=gr.Audio(label="Synthesized Output"),
|
| 68 |
-
flagging_dir =
|
| 69 |
title="Text to Voice using OpenVoice",
|
| 70 |
description="Clone any voice (English) and generate speech using OpenVoice on CPU.",
|
| 71 |
)
|
|
|
|
| 12 |
os.environ["XDG_CONFIG_HOME"] = "/tmp"
|
| 13 |
os.environ["NUMBA_DISABLE_CACHE"] = "1"
|
| 14 |
os.makedirs("/tmp/huggingface", exist_ok=True)
|
| 15 |
+
os.makedirs("/tmp/flagged", exist_ok=True)
|
| 16 |
import gradio as gr
|
| 17 |
from openvoice.api import ToneColorConverter
|
| 18 |
from openvoice import se_extractor
|
|
|
|
| 66 |
gr.Audio(type="filepath", label="Upload a Reference Voice (.wav)")
|
| 67 |
],
|
| 68 |
outputs=gr.Audio(label="Synthesized Output"),
|
| 69 |
+
flagging_dir = "/tmp/flagged",
|
| 70 |
title="Text to Voice using OpenVoice",
|
| 71 |
description="Clone any voice (English) and generate speech using OpenVoice on CPU.",
|
| 72 |
)
|