Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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 |
|