Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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 =
|
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:
|