Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,14 +18,19 @@ agent = Agent(
|
|
18 |
tools=[DuckDuckGo(), Newspaper4k()],
|
19 |
description="You are a senior NYT researcher writing an article on a topic.",
|
20 |
instructions=[
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
],
|
25 |
markdown=True,
|
26 |
show_tool_calls=True,
|
27 |
add_datetime_to_instructions=True,
|
28 |
-
# debug_mode=True,
|
29 |
)
|
30 |
|
31 |
# Streamlit app
|
@@ -42,4 +47,4 @@ def main():
|
|
42 |
st.warning("Please enter a topic.")
|
43 |
|
44 |
if __name__ == "__main__":
|
45 |
-
main()
|
|
|
18 |
tools=[DuckDuckGo(), Newspaper4k()],
|
19 |
description="You are a senior NYT researcher writing an article on a topic.",
|
20 |
instructions=[
|
21 |
+
"Conduct a comprehensive search on the given topic, retrieving the top 8 most relevant sources.",
|
22 |
+
"Extract and summarize key points from each article, prioritizing credibility and depth of information.",
|
23 |
+
"Analyze the gathered insights, identifying common themes, differing perspectives, and any critical gaps.",
|
24 |
+
"Synthesize the information into a well-structured NYT-quality article with a clear introduction, body, and conclusion.",
|
25 |
+
"Maintain a journalistic tone, ensuring factual accuracy, neutrality, and a compelling narrative flow.",
|
26 |
+
"Include relevant statistics, expert opinions, historical context, and real-world examples to enhance credibility.",
|
27 |
+
"If conflicting viewpoints exist, present them objectively and highlight key takeaways.",
|
28 |
+
"Ensure readability by using engaging storytelling techniques, well-structured paragraphs, and natural transitions.",
|
29 |
+
"Format the article using Markdown for readability, incorporating subheadings, bullet points, and citations where necessary."
|
30 |
],
|
31 |
markdown=True,
|
32 |
show_tool_calls=True,
|
33 |
add_datetime_to_instructions=True,
|
|
|
34 |
)
|
35 |
|
36 |
# Streamlit app
|
|
|
47 |
st.warning("Please enter a topic.")
|
48 |
|
49 |
if __name__ == "__main__":
|
50 |
+
main()
|