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