Prathamesh1420
commited on
Commit
•
95eb3ba
1
Parent(s):
56b2fb9
Update app.py
Browse files
app.py
CHANGED
@@ -18,15 +18,16 @@ llm = ChatGoogleGenerativeAI(
|
|
18 |
model="models/gemini-pro" # Replace with the correct model name
|
19 |
)
|
20 |
|
21 |
-
# Initialize the YoutubeChannelSearchTool
|
22 |
-
|
|
|
23 |
|
24 |
# Define Agents
|
25 |
blog_researcher = Agent(
|
26 |
role='Blog Researcher from Youtube Videos',
|
27 |
goal='Get the relevant video transcription for the topic {topic} from the provided YT channel',
|
28 |
backstory=(
|
29 |
-
|
30 |
),
|
31 |
llm=llm,
|
32 |
tools=[yt_tool],
|
|
|
18 |
model="models/gemini-pro" # Replace with the correct model name
|
19 |
)
|
20 |
|
21 |
+
# Initialize the YoutubeChannelSearchTool without OpenAI dependency
|
22 |
+
# (Assuming it can be configured to not use OpenAI, or you might need to create a custom search tool)
|
23 |
+
yt_tool = YoutubeChannelSearchTool(youtube_channel_handle='@krishnaik06', use_openai=False)
|
24 |
|
25 |
# Define Agents
|
26 |
blog_researcher = Agent(
|
27 |
role='Blog Researcher from Youtube Videos',
|
28 |
goal='Get the relevant video transcription for the topic {topic} from the provided YT channel',
|
29 |
backstory=(
|
30 |
+
"Expert in understanding videos in AI, Data Science, Machine Learning, and Gen AI and providing suggestions."
|
31 |
),
|
32 |
llm=llm,
|
33 |
tools=[yt_tool],
|