Spaces:
Sleeping
Sleeping
Update app.py
Browse files13 unmodified lines141516171718192016 unmodified lines373839404041424313 unmodified lines
# Create the Agentagent = Agent( model=Groq(id="llama-3.3-70b-versatile", api_key=groq_api_key), 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 lines if topic: with st.spinner("Generating article..."): response = agent.run(topic) st.markdown(response) st.markdown(response.content) else: st.warning("Please enter a topic.")
app.py+2-2