Skip to content

Forum in maintenance, we will back soon 🙂

YouTube Summarizer/...
 
Notifications
Clear all

YouTube Summarizer/Chatbot tool with site loading( html/css/JS/PHP)

4 Posts
2 Users
3 Reactions
21 Views
(@google-naturemeditation)
Posts: 25
Eminent Member
Topic starter
 

Hi Hasan and team: 

trust you guys are well:) When we use simplerllm in python with load_content function we are able to deploy the summarizer tool for video - youtube. 

However, when we load a tool on site using html...php code how do we activate the video content url analyzing part? do we use a youtube API call? or is there a alternative? in the php code we are typically using a llm with a prompt to get summaries. While this works with text based content how do we do the same for video based content? thanks in advance...  i tried doing it for video with YouTube links but its giving me dummy text for those. @hasan 

 
Posted : 09/06/2024 1:10 pm
(@husein)
Posts: 464
Member Moderator
 

@google-naturemeditation Hello friend, i didnt quite understand your problem, is it that you want to load a web page and then when it encounters a video URL it extracts the transcript and summarizes it?

In the load_content function, it uses the youtube API to extract the transcript when you give it a youtube URL you can see the codes onGitHub.

 
Posted : 09/07/2024 9:04 am
(@google-naturemeditation)
Posts: 25
Eminent Member
Topic starter
 

@husein thanks bro for the tip. No I was trying to create the same load_content function in python on php codebase but then i realised i need to pull a dedicated api call outside the LLM to pull YT data. So was trying to figure out how to do it. Then i worked on it over the weekend and sorted it out bro. I used the official YT api to pull the YT data but getting it work with the gemini model was quite difficult in the end. But it is working now. The Gemini model is not very good in generalized context apparently. The prompts for the model also needs to be more straightforward to get to an acceptable output. In the end i got it to work. So a big thank you for the tip. There were few conflicts from the YT api and how the Gemini api accepts data. The payload had to be adjusted at the Gemini side in the end to fix it, so it was a longer project than i had expected but super exciting and learning experience once it worked:) 

 
Posted : 09/09/2024 6:28 am
(@husein)
Posts: 464
Member Moderator
 

@google-naturemeditation Glad, it worked, and yes, with hands-on training and experimenting, your learning experience improves drastically.

 
Posted : 09/09/2024 11:29 am
Share: