Spaces:
Runtime error
Runtime error
gorkemgoknar
commited on
Commit
•
b7f429f
1
Parent(s):
2072ba9
Update app.py
Browse files
app.py
CHANGED
@@ -53,10 +53,14 @@ from huggingface_hub import InferenceClient
|
|
53 |
|
54 |
# This will trigger downloading model
|
55 |
print("Downloading if not downloaded Coqui XTTS V1.1")
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
58 |
print("XTTS downloaded")
|
59 |
|
|
|
60 |
print("Loading XTTS")
|
61 |
# Below will use model directly for inference
|
62 |
model_path = os.path.join(
|
@@ -658,8 +662,19 @@ EXAMPLES = [
|
|
658 |
]
|
659 |
|
660 |
MODELS = ["Zephyr","Mistral"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
661 |
with gr.Blocks(title=title) as demo:
|
662 |
gr.Markdown(DESCRIPTION)
|
|
|
663 |
with gr.Row():
|
664 |
model_selected = gr.Dropdown(
|
665 |
label="Select Instuct LLM Model to Use",
|
|
|
53 |
|
54 |
# This will trigger downloading model
|
55 |
print("Downloading if not downloaded Coqui XTTS V1.1")
|
56 |
+
|
57 |
+
from TTS.utils.manage import ModelManager
|
58 |
+
model_name = "tts_models/multilingual/multi-dataset/xtts_v1.1"
|
59 |
+
ModelManager().download_model(model_name)
|
60 |
+
model_path = os.path.join(get_user_data_dir("tts"), model_name.replace("/", "--"))
|
61 |
print("XTTS downloaded")
|
62 |
|
63 |
+
|
64 |
print("Loading XTTS")
|
65 |
# Below will use model directly for inference
|
66 |
model_path = os.path.join(
|
|
|
662 |
]
|
663 |
|
664 |
MODELS = ["Zephyr","Mistral"]
|
665 |
+
|
666 |
+
OTHER_HTML=f"""<div>
|
667 |
+
<a style="display:inline-block" href='https://github.com/coqui-ai/TTS'><img src='https://img.shields.io/github/stars/coqui-ai/TTS?style=social' /></a>
|
668 |
+
<a style='display:inline-block' href='https://discord.gg/5eXr5seRrv'><img src='https://discord.com/api/guilds/1037326658807533628/widget.png?style=shield' /></a>
|
669 |
+
<a href="https://huggingface.co/spaces/coqui/voice-chat-with-mistral?duplicate=true">
|
670 |
+
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
671 |
+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=0d00920c-8cc9-4bf3-90f2-a615797e5f59" />
|
672 |
+
</div>
|
673 |
+
"""
|
674 |
+
|
675 |
with gr.Blocks(title=title) as demo:
|
676 |
gr.Markdown(DESCRIPTION)
|
677 |
+
gr.Markdown(OTHER_HTML)
|
678 |
with gr.Row():
|
679 |
model_selected = gr.Dropdown(
|
680 |
label="Select Instuct LLM Model to Use",
|