Manasa1 commited on
Commit
15e6ee2
·
verified ·
1 Parent(s): 16c86bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -10,9 +10,14 @@ from dotenv import load_dotenv
10
  # Load environment variables
11
  load_dotenv()
12
 
 
 
 
 
 
13
  # Create the Agent with a more natural, imperfect human-like writing style
14
  agent = Agent(
15
- model=Groq(id="llama-3.3-70b-specdec", api_key=os.getenv("GROQ_API_KEY")),
16
  tools=[DuckDuckGo(), Newspaper4k()],
17
  description="You write like a real person, not a robot. Your writing is simple, engaging, and casual—like a conversation with a friend.",
18
  instructions=[
 
10
  # Load environment variables
11
  load_dotenv()
12
 
13
+ API_KEY = os.getenv("GOOGLE_API_KEY")
14
+ if API_KEY:
15
+ genai.configure(api_key=API_KEY)
16
+
17
+
18
  # Create the Agent with a more natural, imperfect human-like writing style
19
  agent = Agent(
20
+ model=Gemini(id="gemini-2.0-flash-exp"),
21
  tools=[DuckDuckGo(), Newspaper4k()],
22
  description="You write like a real person, not a robot. Your writing is simple, engaging, and casual—like a conversation with a friend.",
23
  instructions=[