3v324v23 commited on
Commit
376eb7a
·
1 Parent(s): d2ec62c

Use Pro for Belarusian podcast transcripts

Browse files
Files changed (1) hide show
  1. start-hf.sh +6 -3
start-hf.sh CHANGED
@@ -389,7 +389,10 @@ async def upsert_episode_profile(outline_model_id: str, transcript_model_id: str
389
 
390
  briefing = (
391
  "Ствары беларускі падкаст на аснове матэрыялаў нататніка. "
392
- "Захоўвай натуральную мову, ясную структуру і спакойную інтэлектуальную падачу."
 
 
 
393
  )
394
  profile = await EpisodeProfile.get_by_name("Беларускі падкаст")
395
  if profile is None:
@@ -412,7 +415,7 @@ async def upsert_episode_profile(outline_model_id: str, transcript_model_id: str
412
  profile.outline_provider = "vertex"
413
  profile.outline_model = "gemini-2.5-flash"
414
  profile.transcript_provider = "vertex"
415
- profile.transcript_model = "gemini-2.5-flash"
416
  await profile.save()
417
  return str(profile.id)
418
 
@@ -438,7 +441,7 @@ async def seed() -> None:
438
  tts_id = await upsert_model("gemini-2.5-flash-tts", "text_to_speech", credential_id)
439
  await set_default_models(flash_id, pro_id, embedding_id, tts_id)
440
  await upsert_speaker_profile(tts_id)
441
- await upsert_episode_profile(flash_id, flash_id)
442
  print("Seeded Open Notebook Vertex models and podcast profiles")
443
 
444
 
 
389
 
390
  briefing = (
391
  "Ствары беларускі падкаст на аснове матэрыялаў нататніка. "
392
+ "Захоўвай натуральную мову, ясную структуру і спакойную інтэлектуальную падачу. "
393
+ "Калі матэрыялы вельмі кароткія, трактуй іх як тэму выпуску і ўсё роўна ствары "
394
+ "змястоўны беларускамоўны падкаст. На этапе transcript заўсёды вяртай валідны "
395
+ "JSON-аб'ект з ключом transcript; ніколі не вяртай null."
396
  )
397
  profile = await EpisodeProfile.get_by_name("Беларускі падкаст")
398
  if profile is None:
 
415
  profile.outline_provider = "vertex"
416
  profile.outline_model = "gemini-2.5-flash"
417
  profile.transcript_provider = "vertex"
418
+ profile.transcript_model = "gemini-2.5-pro"
419
  await profile.save()
420
  return str(profile.id)
421
 
 
441
  tts_id = await upsert_model("gemini-2.5-flash-tts", "text_to_speech", credential_id)
442
  await set_default_models(flash_id, pro_id, embedding_id, tts_id)
443
  await upsert_speaker_profile(tts_id)
444
+ await upsert_episode_profile(flash_id, pro_id)
445
  print("Seeded Open Notebook Vertex models and podcast profiles")
446
 
447