Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +3 -3
functions.py
CHANGED
@@ -51,9 +51,9 @@ def get_transcribe_podcast(rss_url, local_path='/data/'):
|
|
51 |
episode_path = p.joinpath(episode_name)
|
52 |
print(f'episode path {episode_path}')
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
st.info("Podcast Episode downloaded")
|
59 |
|
|
|
51 |
episode_path = p.joinpath(episode_name)
|
52 |
print(f'episode path {episode_path}')
|
53 |
|
54 |
+
with open(episode_path, 'wb') as f:
|
55 |
+
for chunk in r.iter_content(chunk_size=8192):
|
56 |
+
f.write(chunk)
|
57 |
|
58 |
st.info("Podcast Episode downloaded")
|
59 |
|