Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ web_agent = ToolCallingAgent(
|
|
10 |
managed_web_agent = ManagedAgent(
|
11 |
agent=web_agent,
|
12 |
name="search",
|
13 |
-
description="Runs
|
14 |
)
|
15 |
|
16 |
manager_agent = CodeAgent(
|
@@ -30,14 +30,14 @@ def log_agent_action(prompt, result, agent_name):
|
|
30 |
st.code(result, language="text")
|
31 |
|
32 |
# Streamlit app title
|
33 |
-
st.title("AI
|
34 |
|
35 |
# App description
|
36 |
-
st.write("Generate reports enriched with real-time insights using the AI
|
37 |
|
38 |
# Input blog topic or prompt
|
39 |
|
40 |
-
prompt = st.text_area("Enter the
|
41 |
|
42 |
# Button to generate blog content
|
43 |
if st.button("Generate Summary"):
|
@@ -51,7 +51,7 @@ if st.button("Generate Summary"):
|
|
51 |
st.write(result)
|
52 |
|
53 |
# Log backend activity
|
54 |
-
log_agent_action(prompt, result, "
|
55 |
except Exception as e:
|
56 |
st.error(f"An error occurred: {e}")
|
57 |
else:
|
|
|
10 |
managed_web_agent = ManagedAgent(
|
11 |
agent=web_agent,
|
12 |
name="search",
|
13 |
+
description="Runs tech web searches. Give it your query as an argument. Also, this agent should link to the sources you are using. If any specific sites are provided, this agent will only those sources.",
|
14 |
)
|
15 |
|
16 |
manager_agent = CodeAgent(
|
|
|
30 |
st.code(result, language="text")
|
31 |
|
32 |
# Streamlit app title
|
33 |
+
st.title("AI Tech Assistant Agent researching your query and summarizing it")
|
34 |
|
35 |
# App description
|
36 |
+
st.write("Generate reports enriched with real-time insights using the AI Tech Report Writing Agent powered by SmolAgents and DuckDuckGo.")
|
37 |
|
38 |
# Input blog topic or prompt
|
39 |
|
40 |
+
prompt = st.text_area("Enter the your search query:", placeholder="E.g., What is the optimal specs for my computer? I am running normal desktop programs. I want my computer to be fast and efficient. Storage is not so important. Please, don't let it be too expensive. Also, let me know where I can buy the computer in Sweden.")
|
41 |
|
42 |
# Button to generate blog content
|
43 |
if st.button("Generate Summary"):
|
|
|
51 |
st.write(result)
|
52 |
|
53 |
# Log backend activity
|
54 |
+
log_agent_action(prompt, result, "Tech Research Agent with DuckDuckGo")
|
55 |
except Exception as e:
|
56 |
st.error(f"An error occurred: {e}")
|
57 |
else:
|