Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ print("Loading SNAC model...")
|
|
| 14 |
snac_model = SNAC.from_pretrained("hubertsiuzdak/snac_24khz")
|
| 15 |
snac_model = snac_model.to(device)
|
| 16 |
|
| 17 |
-
model_name = "
|
| 18 |
|
| 19 |
# Download only model config and safetensors
|
| 20 |
snapshot_download(
|
|
@@ -149,18 +149,18 @@ def generate_speech(text, voice, temperature, top_p, repetition_penalty, max_new
|
|
| 149 |
|
| 150 |
# Examples for the UI
|
| 151 |
examples = [
|
| 152 |
-
["
|
| 153 |
-
["
|
| 154 |
-
["
|
| 155 |
-
["
|
| 156 |
-
["
|
| 157 |
-
["
|
| 158 |
-
["
|
| 159 |
-
["
|
| 160 |
]
|
| 161 |
|
| 162 |
# Available voices
|
| 163 |
-
VOICES = ["
|
| 164 |
|
| 165 |
# Available Emotive Tags
|
| 166 |
EMOTIVE_TAGS = ["`<laugh>`", "`<chuckle>`", "`<sigh>`", "`<cough>`", "`<sniffle>`", "`<groan>`", "`<yawn>`", "`<gasp>`"]
|
|
|
|
| 14 |
snac_model = SNAC.from_pretrained("hubertsiuzdak/snac_24khz")
|
| 15 |
snac_model = snac_model.to(device)
|
| 16 |
|
| 17 |
+
model_name = "Karayakar/Orpheus-TTS-Turkish-PT-2000"
|
| 18 |
|
| 19 |
# Download only model config and safetensors
|
| 20 |
snapshot_download(
|
|
|
|
| 149 |
|
| 150 |
# Examples for the UI
|
| 151 |
examples = [
|
| 152 |
+
["Bu sabah olanları hatırlayınca <gülme> kendimi tutamıyorum.", "Kara", 0.6, 0.95, 1.1, 1200],
|
| 153 |
+
["Patron yanlış dosyayı gönderince <gülme> hepimiz şok olduk.", "Kara", 0.7, 0.95, 1.1, 1200],
|
| 154 |
+
["<gülme> Sen ciddi misin? Gerçekten öyle mi dedi?", "leah", 0.6, 0.9, 1.2, 1200],
|
| 155 |
+
["Sahneye çıkmadan önce pantolonun ters olduğunu fark etti <kıkırdama>", "Kara", 0.65, 0.9, 1.1, 1200],
|
| 156 |
+
["Mikrofona yanlışlıkla nefesini üfleyince <kıkırdama> kaçtı.", "Kara", 0.7, 0.95, 1.1, 1200],
|
| 157 |
+
["Hayat bazen böyle zor işte, dedi <iç çekme> ile.", "Kara", 0.65, 0.9, 1.15, 1200],
|
| 158 |
+
["Sınıfta sessizlik varken aniden gelen <öksürme> dikkat dağıttı.", "Kara", 0.7, 0.95, 1.1, 1200],
|
| 159 |
+
["<öksürme> Özür dilerim, biraz rahatsızım bugün.", "Kara", 0.6, 0.95, 1.1, 1200]
|
| 160 |
]
|
| 161 |
|
| 162 |
# Available voices
|
| 163 |
+
VOICES = ["Kara"]
|
| 164 |
|
| 165 |
# Available Emotive Tags
|
| 166 |
EMOTIVE_TAGS = ["`<laugh>`", "`<chuckle>`", "`<sigh>`", "`<cough>`", "`<sniffle>`", "`<groan>`", "`<yawn>`", "`<gasp>`"]
|