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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ Separate dialog as follows using [S1] for the male host and [S2] for the female
25
  [S2] I'm good, thank you. How are you?
26
  [S1] I'm good, thank you. (laughs)
27
  [S2] Great.
28
- Now go on, make 2 minutes of podcast.
29
  """
30
  response = client.chat_completion([{"role": "user", "content": prompt}], max_tokens=1000)
31
  return response.choices[0].message.content
@@ -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 = 44100 # Cf https://huggingface.co/spaces/nari-labs/Dia-1.6B/blob/main/app.py
67
 
68
  try:
69
  while True:
 
25
  [S2] I'm good, thank you. How are you?
26
  [S1] I'm good, thank you. (laughs)
27
  [S2] Great.
28
+ Now go on, make 5 minutes of podcast.
29
  """
30
  response = client.chat_completion([{"role": "user", "content": prompt}], max_tokens=1000)
31
  return response.choices[0].message.content
 
63
  gen_thread = threading.Thread(target=process_audio_chunks, args=(podcast_text,))
64
  gen_thread.start()
65
 
66
+ sample_rate = 32000 # Modified from https://huggingface.co/spaces/nari-labs/Dia-1.6B/blob/main/app.py has 44100
67
 
68
  try:
69
  while True: