Spaces:
Sleeping
Sleeping
Nagesh Muralidhar
commited on
Commit
·
32402f2
1
Parent(s):
4972b4c
midterm-submission
Browse files- server/main.py +2 -2
server/main.py
CHANGED
|
@@ -208,7 +208,7 @@ async def delete_audio_file(filename: str):
|
|
| 208 |
logger.error(f"Error in delete_audio_file: {str(e)}")
|
| 209 |
raise HTTPException(status_code=500, detail=str(e))
|
| 210 |
|
| 211 |
-
@
|
| 212 |
async def get_podcast_context(podcast_id: str):
|
| 213 |
"""Get or generate context for a podcast."""
|
| 214 |
try:
|
|
@@ -333,7 +333,7 @@ async def get_podcast_context(podcast_id: str):
|
|
| 333 |
logger.error(f"Error in get_podcast_context: {str(e)}", exc_info=True)
|
| 334 |
raise HTTPException(status_code=500, detail=str(e))
|
| 335 |
|
| 336 |
-
@
|
| 337 |
async def podcast_chat(podcast_id: str, request: PodcastChatRequest):
|
| 338 |
"""Handle chat messages for a specific podcast."""
|
| 339 |
try:
|
|
|
|
| 208 |
logger.error(f"Error in delete_audio_file: {str(e)}")
|
| 209 |
raise HTTPException(status_code=500, detail=str(e))
|
| 210 |
|
| 211 |
+
@api_router.get("/podcast/{podcast_id}/context")
|
| 212 |
async def get_podcast_context(podcast_id: str):
|
| 213 |
"""Get or generate context for a podcast."""
|
| 214 |
try:
|
|
|
|
| 333 |
logger.error(f"Error in get_podcast_context: {str(e)}", exc_info=True)
|
| 334 |
raise HTTPException(status_code=500, detail=str(e))
|
| 335 |
|
| 336 |
+
@api_router.post("/podcast-chat/{podcast_id}")
|
| 337 |
async def podcast_chat(podcast_id: str, request: PodcastChatRequest):
|
| 338 |
"""Handle chat messages for a specific podcast."""
|
| 339 |
try:
|