Spaces:
Running
Running
Update tools.py
Browse files
tools.py
CHANGED
@@ -423,4 +423,4 @@ def get_youtube_transcript(video_url: str) -> Dict[str, Any]:
|
|
423 |
transcript_text = " ".join([item['text'] for item in transcript_list])
|
424 |
return {"status": "success", "transcript": transcript_text[:15000]}
|
425 |
except Exception as e:
|
426 |
-
return {"error": str(e)
|
|
|
423 |
transcript_text = " ".join([item['text'] for item in transcript_list])
|
424 |
return {"status": "success", "transcript": transcript_text[:15000]}
|
425 |
except Exception as e:
|
426 |
+
return {"error": str(e)}
|