Spaces:
Sleeping
Sleeping
Update invoke_rss.py
Browse files- invoke_rss.py +8 -1
invoke_rss.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import modal
|
| 2 |
-
|
| 3 |
|
| 4 |
def get_rss_output(rss):
|
| 5 |
f = modal.Function.lookup("corise-podcast-project", "main")
|
|
@@ -21,3 +21,10 @@ def get_rss_output(rss):
|
|
| 21 |
return podcast_name, episode_title, episode_image, podcast_summary, podcast_guest, podcast_guest_org, \
|
| 22 |
podcast_guest_title, podcast_guest_wikipedia, podcast_highlights, podcast_key_moments, \
|
| 23 |
podcast_gpt_transcript
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import modal
|
| 2 |
+
from search_recommend import recommend, get_podcast_title
|
| 3 |
|
| 4 |
def get_rss_output(rss):
|
| 5 |
f = modal.Function.lookup("corise-podcast-project", "main")
|
|
|
|
| 21 |
return podcast_name, episode_title, episode_image, podcast_summary, podcast_guest, podcast_guest_org, \
|
| 22 |
podcast_guest_title, podcast_guest_wikipedia, podcast_highlights, podcast_key_moments, \
|
| 23 |
podcast_gpt_transcript
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def get_recommendations(podcast_id, normal_chatbot):
|
| 27 |
+
recommend_string = recommend(podcast_id)
|
| 28 |
+
podcast_title = get_podcast_title(podcast_id)
|
| 29 |
+
normal_chatbot.append((podcast_title,recommend_string))
|
| 30 |
+
return normal_chatbot
|