Updated readme and UI.
Browse files- README.md +1 -1
- rss_client.py +14 -12
README.md
CHANGED
@@ -13,4 +13,4 @@ tags:
|
|
13 |
|
14 |
[](https://github.com/gperdrizet/rss-mcp-client/actions/workflows/publish_hf_space.yml)
|
15 |
|
16 |
-
LLM agent RSS feed reader using Model Context Protocol.
|
|
|
13 |
|
14 |
[](https://github.com/gperdrizet/rss-mcp-client/actions/workflows/publish_hf_space.yml)
|
15 |
|
16 |
+
LLM agent RSS feed reader using Model Context Protocol: try it on [HuggingFace Spaces](https://huggingface.co/spaces/Agents-MCP-Hackathon/rss-mcp-client)
|
rss_client.py
CHANGED
@@ -51,26 +51,28 @@ async def send_message(message: str, chat_history: list) -> str:
|
|
51 |
|
52 |
|
53 |
with gr.Blocks(title='MCP RSS client') as demo:
|
54 |
-
gr.Markdown('#
|
55 |
-
gr.Markdown(
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
62 |
|
63 |
chatbot = gr.Chatbot(
|
64 |
value=[],
|
65 |
height=500,
|
66 |
type='messages',
|
67 |
-
show_copy_button=True
|
68 |
-
avatar_images=('👤', '🤖')
|
69 |
)
|
70 |
|
71 |
msg = gr.Textbox(
|
72 |
-
label='
|
73 |
-
placeholder='
|
74 |
scale=4
|
75 |
)
|
76 |
|
|
|
51 |
|
52 |
|
53 |
with gr.Blocks(title='MCP RSS client') as demo:
|
54 |
+
gr.Markdown('# Agentic RSS reader')
|
55 |
+
gr.Markdown("""
|
56 |
+
Uses sister Space
|
57 |
+
[RSS feed reader](https://huggingface.co/spaces/Agents-MCP-Hackathon/rss-mcp-server)
|
58 |
+
via MCP. Click 'Connect to MCP server' to get started. Check out the
|
59 |
+
[main project repo on GitHub](https://github.com/gperdrizet/MCP-hackathon/tree/main).
|
60 |
+
Both Spaces by [George Perdrizet](https://www.linkedin.com/in/gperdrizet/).
|
61 |
+
""")
|
62 |
+
|
63 |
+
connect_btn = gr.Button('Connect to MCP server')
|
64 |
+
status = gr.Textbox(label='MCP server tool dump', interactive=False, lines=4)
|
65 |
|
66 |
chatbot = gr.Chatbot(
|
67 |
value=[],
|
68 |
height=500,
|
69 |
type='messages',
|
70 |
+
show_copy_button=True
|
|
|
71 |
)
|
72 |
|
73 |
msg = gr.Textbox(
|
74 |
+
label='Ask about content or articles on a site or platform',
|
75 |
+
placeholder='Is there anything new on Hacker News?',
|
76 |
scale=4
|
77 |
)
|
78 |
|