Spaces:
Sleeping
Sleeping
Update app.py
Browse files13 unmodified lines1415161718192016 unmodified lines3738394041424313 unmodified lines# Create the Agentagent = Agent(model=Groq(id="llama-3.3-70b-versatile", api_key=groq_api_key),tools=[DuckDuckGo(), Newspaper4k()],description="You are a senior NYT researcher writing an article on a topic.",instructions=[16 unmodified linesif topic:with st.spinner("Generating article..."):response = agent.run(topic)st.markdown(response)else:st.warning("Please enter a topic.")13 unmodified lines1415161718192016 unmodified lines3738394041424313 unmodified lines# Create the Agentagent = Agent(model=Groq(id="llama-3.1-8b-instant", api_key=groq_api_key),tools=[DuckDuckGo(), Newspaper4k()],description="You are a senior NYT researcher writing an article on a topic.",instructions=[16 unmodified linesif topic:with st.spinner("Generating article..."):response = agent.run(topic)st.markdown(response.content)else:st.warning("Please enter a topic.")
app.py+2-2