Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +2 -1
functions.py
CHANGED
@@ -48,6 +48,7 @@ def get_transcribe_podcast(rss_url, local_path):
|
|
48 |
with requests.get(rss_url, stream=True) as r:
|
49 |
r.raise_for_status()
|
50 |
episode_path = p.joinpath(episode_name)
|
|
|
51 |
|
52 |
with open(episode_path, 'wb') as f:
|
53 |
for chunk in r.iter_content(chunk_size=8192):
|
@@ -188,7 +189,7 @@ def get_podcast_highlights(podcast_transcript):
|
|
188 |
return podcastHighlights
|
189 |
|
190 |
@st.cache_data
|
191 |
-
def process_podcast(url, path):
|
192 |
|
193 |
'''Get podcast transcription into json'''
|
194 |
|
|
|
48 |
with requests.get(rss_url, stream=True) as r:
|
49 |
r.raise_for_status()
|
50 |
episode_path = p.joinpath(episode_name)
|
51 |
+
print(f'episode path {episode_path}')
|
52 |
|
53 |
with open(episode_path, 'wb') as f:
|
54 |
for chunk in r.iter_content(chunk_size=8192):
|
|
|
189 |
return podcastHighlights
|
190 |
|
191 |
@st.cache_data
|
192 |
+
def process_podcast(url, path='output'):
|
193 |
|
194 |
'''Get podcast transcription into json'''
|
195 |
|