gperdrizet commited on
Commit
a28b1b4
·
verified ·
1 Parent(s): 0ae4701

Updated readme and UI.

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. rss_client.py +14 -12
README.md CHANGED
@@ -13,4 +13,4 @@ tags:
13
 
14
  [![HuggingFace Space](https://github.com/gperdrizet/rss-mcp-client/actions/workflows/publish_hf_space.yml/badge.svg)](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
  [![HuggingFace Space](https://github.com/gperdrizet/rss-mcp-client/actions/workflows/publish_hf_space.yml/badge.svg)](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('# MCP RSS reader')
55
- gr.Markdown(
56
- 'Connect to the MCP RSS server: ' +
57
- 'https://huggingface.co/spaces/Agents-MCP-Hackathon/rss-mcp-server'
58
- )
59
-
60
- connect_btn = gr.Button('Connect')
61
- status = gr.Textbox(label='Connection Status', interactive=False, lines=10)
 
 
 
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='Your Question',
73
- placeholder='Ask about an RSS feed',
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