Update app.py
Browse files
app.py
CHANGED
|
@@ -5,10 +5,12 @@ import json
|
|
| 5 |
import re
|
| 6 |
import ast
|
| 7 |
import gradio as gr
|
| 8 |
-
|
| 9 |
# Import the scraper function
|
| 10 |
from scrape_and_format_hf_mcp_servers import scrape_and_format_hf_mcp_servers, SORT_OPTIONS
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
def parse_huggingface_url(url: str) -> str:
|
| 13 |
"""
|
| 14 |
Parse various Hugging Face URL formats and extract space info.
|
|
@@ -694,6 +696,8 @@ def scrape_hf_spaces_with_progress(max_pages: int, sort_by: str) -> tuple:
|
|
| 694 |
DEFAULT_URLS = """https://huggingface.co/spaces/NLarchive/MCP-Server-Finder-Monitor
|
| 695 |
https://huggingface.co/spaces/NLarchive/mcp-sentiment"""
|
| 696 |
|
|
|
|
|
|
|
| 697 |
# Create Gradio interfaces with vertical layout and better organization
|
| 698 |
with gr.Blocks(title="🚀 MCP Server Health Monitor") as demo:
|
| 699 |
gr.Markdown("# 🚀 MCP Server Health Monitor")
|
|
|
|
| 5 |
import re
|
| 6 |
import ast
|
| 7 |
import gradio as gr
|
|
|
|
| 8 |
# Import the scraper function
|
| 9 |
from scrape_and_format_hf_mcp_servers import scrape_and_format_hf_mcp_servers, SORT_OPTIONS
|
| 10 |
|
| 11 |
+
# Code by Nicolas larenas, NLarchive
|
| 12 |
+
|
| 13 |
+
|
| 14 |
def parse_huggingface_url(url: str) -> str:
|
| 15 |
"""
|
| 16 |
Parse various Hugging Face URL formats and extract space info.
|
|
|
|
| 696 |
DEFAULT_URLS = """https://huggingface.co/spaces/NLarchive/MCP-Server-Finder-Monitor
|
| 697 |
https://huggingface.co/spaces/NLarchive/mcp-sentiment"""
|
| 698 |
|
| 699 |
+
# Code by Nicolas larenas, NLarchive
|
| 700 |
+
|
| 701 |
# Create Gradio interfaces with vertical layout and better organization
|
| 702 |
with gr.Blocks(title="🚀 MCP Server Health Monitor") as demo:
|
| 703 |
gr.Markdown("# 🚀 MCP Server Health Monitor")
|