Manasa1 commited on
Commit
8ae2ba2
·
verified ·
1 Parent(s): 97f86de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ groq_api_key = os.getenv("GROQ_API_KEY")
14
 
15
  # Create the Agent
16
  agent = Agent(
17
- model=Groq(id="llama-3.3-70b-versatile", api_key=groq_api_key),
18
  tools=[DuckDuckGo(), Newspaper4k()],
19
  description="You are a senior NYT researcher writing an article on a topic.",
20
  instructions=[
@@ -37,7 +37,7 @@ def main():
37
  if topic:
38
  with st.spinner("Generating article..."):
39
  response = agent.run(topic)
40
- st.markdown(response)
41
  else:
42
  st.warning("Please enter a topic.")
43
 
 
14
 
15
  # Create the Agent
16
  agent = Agent(
17
+ model=Groq(id="llama-3.1-8b-instant", api_key=groq_api_key),
18
  tools=[DuckDuckGo(), Newspaper4k()],
19
  description="You are a senior NYT researcher writing an article on a topic.",
20
  instructions=[
 
37
  if topic:
38
  with st.spinner("Generating article..."):
39
  response = agent.run(topic)
40
+ st.markdown(response.content)
41
  else:
42
  st.warning("Please enter a topic.")
43