m-ric HF Staff commited on
Commit
86423a4
·
verified ·
1 Parent(s): 992fb70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ Now go on, make 2 minutes of podcast.
31
  return response.choices[0].message.content
32
 
33
 
34
- def split_podcast_into_chunks(podcast_text, chunk_size=10):
35
  lines = podcast_text.strip().split("\n")
36
  chunks = []
37
 
@@ -63,7 +63,7 @@ def stream_audio_generator(podcast_text):
63
  gen_thread = threading.Thread(target=process_audio_chunks, args=(podcast_text,))
64
  gen_thread.start()
65
 
66
- sample_rate = 22050
67
 
68
  try:
69
  while True:
 
31
  return response.choices[0].message.content
32
 
33
 
34
+ def split_podcast_into_chunks(podcast_text, chunk_size=3):
35
  lines = podcast_text.strip().split("\n")
36
  chunks = []
37
 
 
63
  gen_thread = threading.Thread(target=process_audio_chunks, args=(podcast_text,))
64
  gen_thread.start()
65
 
66
+ sample_rate = 44100 # Cf https://huggingface.co/spaces/nari-labs/Dia-1.6B/blob/main/app.py
67
 
68
  try:
69
  while True: