Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ serper_news_tool = FunctionTool.from_defaults(
|
|
121 |
|
122 |
# Create the agent workflow
|
123 |
tools = [
|
124 |
-
|
125 |
navigate_tool,
|
126 |
extract_text_tool,
|
127 |
extract_links_tool,
|
@@ -168,7 +168,13 @@ async def gradio_query(user_input, chat_history=None):
|
|
168 |
# Build and launch Gradio app
|
169 |
grb = gr.Blocks()
|
170 |
with grb:
|
171 |
-
gr.Markdown("##
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
chatbot = gr.Chatbot(type="messages") # use openai-style messages
|
173 |
txt = gr.Textbox(placeholder="Ask me anything...", show_label=False)
|
174 |
txt.submit(gradio_query, [txt, chatbot], [chatbot, chatbot])
|
|
|
121 |
|
122 |
# Create the agent workflow
|
123 |
tools = [
|
124 |
+
search_tool,
|
125 |
navigate_tool,
|
126 |
extract_text_tool,
|
127 |
extract_links_tool,
|
|
|
168 |
# Build and launch Gradio app
|
169 |
grb = gr.Blocks()
|
170 |
with grb:
|
171 |
+
gr.Markdown("## Perspicacity")
|
172 |
+
gr.Markdown(
|
173 |
+
"This bot can check the news, tell you the weather, and even browse websites to answer follow-up questions — all powered by a team of tiny AI agents working behind the scenes.\n\n"
|
174 |
+
"🧪 Built for fun during the [AI Agents course](https://huggingface.co/learn/agents-course/unit0/introduction) — it's just a demo to show what agents can do. \n"
|
175 |
+
"🙌 Got ideas or improvements? PRs welcome! \n\n"
|
176 |
+
"👉 _Try asking “What’s the weather in Montreal?” or “What’s in the news today?”_"
|
177 |
+
)
|
178 |
chatbot = gr.Chatbot(type="messages") # use openai-style messages
|
179 |
txt = gr.Textbox(placeholder="Ask me anything...", show_label=False)
|
180 |
txt.submit(gradio_query, [txt, chatbot], [chatbot, chatbot])
|