Manasa1 commited on
Commit
cc2d4f2
·
verified ·
1 Parent(s): ec3cea5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -109,7 +109,7 @@ with tab2:
109
  youtube_agent = Agent(
110
  model=Groq(id="llama-3.3-70b-versatile", api_key=groq_api_key),
111
  tools=[YouTubeTools(), DuckDuckGo()],
112
- show_tool_calls=False,
113
  get_video_captions=True,
114
  description="You are a YouTube agent. Obtain the captions of a YouTube video, analyze its content and context, provide summaries, conduct web research on similar topics, and answer user questions.",
115
  )
@@ -130,14 +130,15 @@ with tab2:
130
  try:
131
  if user_query:
132
  prompt = f"""Analyze the video captions for content and context. Provide a detailed summary. Search the internet for similar topics discussed in the uploaded video.
 
133
 
134
  Respond to the following query using video insights and supplementary web research:
135
 
136
  {user_query}
137
 
138
- Provide a detailed, user-friendly, and actionable response.
139
 
140
- Video URL: {video_url}"""
141
  else:
142
  st.warning("Please enter a question or insight to analyze the video.")
143
  output = youtube_agent.run(prompt)
 
109
  youtube_agent = Agent(
110
  model=Groq(id="llama-3.3-70b-versatile", api_key=groq_api_key),
111
  tools=[YouTubeTools(), DuckDuckGo()],
112
+ show_tool_calls=True,
113
  get_video_captions=True,
114
  description="You are a YouTube agent. Obtain the captions of a YouTube video, analyze its content and context, provide summaries, conduct web research on similar topics, and answer user questions.",
115
  )
 
130
  try:
131
  if user_query:
132
  prompt = f"""Analyze the video captions for content and context. Provide a detailed summary. Search the internet for similar topics discussed in the uploaded video.
133
+
134
 
135
  Respond to the following query using video insights and supplementary web research:
136
 
137
  {user_query}
138
 
139
+ Provide a detailed, user-friendly, and actionable response.
140
 
141
+ Video URL: {video_url}"""
142
  else:
143
  st.warning("Please enter a question or insight to analyze the video.")
144
  output = youtube_agent.run(prompt)