Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ load_dotenv()
|
|
17 |
|
18 |
# Configure API keys
|
19 |
API_KEY = os.getenv("GOOGLE_API_KEY")
|
20 |
-
|
21 |
if API_KEY:
|
22 |
genai.configure(api_key=API_KEY)
|
23 |
|
@@ -106,7 +106,7 @@ with tab2:
|
|
106 |
# Initialize the agent for YouTube analysis
|
107 |
try:
|
108 |
youtube_agent = Agent(
|
109 |
-
model=
|
110 |
tools=[YouTubeTools(), DuckDuckGo()],
|
111 |
show_tool_calls=False,
|
112 |
get_video_captions=True,
|
|
|
17 |
|
18 |
# Configure API keys
|
19 |
API_KEY = os.getenv("GOOGLE_API_KEY")
|
20 |
+
groq_api_key = os.getenv("GROQ_API_KEY")
|
21 |
if API_KEY:
|
22 |
genai.configure(api_key=API_KEY)
|
23 |
|
|
|
106 |
# Initialize the agent for YouTube analysis
|
107 |
try:
|
108 |
youtube_agent = Agent(
|
109 |
+
model=Groq(id="llama-3.3-70b-versatile", api_key=groq_api_key),
|
110 |
tools=[YouTubeTools(), DuckDuckGo()],
|
111 |
show_tool_calls=False,
|
112 |
get_video_captions=True,
|