Karayakar commited on
Commit
ee1cc2b
·
verified ·
1 Parent(s): e452575

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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 = "canopylabs/orpheus-3b-0.1-ft"
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
- ["Hey there my name is Tara, <chuckle> and I'm a speech generation model that can sound like a person.", "tara", 0.6, 0.95, 1.1, 1200],
153
- ["I've also been taught to understand and produce paralinguistic things <sigh> like sighing, or <laugh> laughing, or <yawn> yawning!", "dan", 0.7, 0.95, 1.1, 1200],
154
- ["I live in San Francisco, and have, uhm let's see, 3 billion 7 hundred ... <gasp> well, lets just say a lot of parameters.", "leah", 0.6, 0.9, 1.2, 1200],
155
- ["Sometimes when I talk too much, I need to <cough> excuse myself. <sniffle> The weather has been quite cold lately.", "leo", 0.65, 0.9, 1.1, 1200],
156
- ["Public speaking can be challenging. <groan> But with enough practice, anyone can become better at it.", "jess", 0.7, 0.95, 1.1, 1200],
157
- ["The hike was exhausting but the view from the top was absolutely breathtaking! <sigh> It was totally worth it.", "mia", 0.65, 0.9, 1.15, 1200],
158
- ["Did you hear that joke? <laugh> I couldn't stop laughing when I first heard it. <chuckle> It's still funny.", "zac", 0.7, 0.95, 1.1, 1200],
159
- ["After running the marathon, I was so tired <yawn> and needed a long rest. <sigh> But I felt accomplished.", "zoe", 0.6, 0.95, 1.1, 1200]
160
  ]
161
 
162
  # Available voices
163
- VOICES = ["tara", "leah", "jess", "leo", "dan", "mia", "zac", "zoe"]
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>`"]