NLarchive commited on
Commit
f36bde0
·
verified ·
1 Parent(s): ce75b1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -7,7 +7,7 @@ import ast
7
  import gradio as gr
8
 
9
  # Import the scraper function
10
- from scrape_and_monitor_hf_mcp_servers import scrape_and_monitor_hf_mcp_servers, SORT_OPTIONS
11
 
12
  def parse_huggingface_url(url: str) -> str:
13
  """
@@ -679,9 +679,9 @@ def scrape_hf_spaces_with_progress(max_pages: int, sort_by: str) -> tuple:
679
  sort_by = "relevance"
680
 
681
  # Call the scraper with sort option
682
- # The imported scrape_and_monitor_hf_mcp_servers function
683
  # will print its own progress to the console.
684
- md, json_data = scrape_and_monitor_hf_mcp_servers(max_pages, sort_by)
685
 
686
  return md, json_data
687
 
@@ -787,7 +787,7 @@ with gr.Blocks(title="🚀 MCP Server Health Monitor") as demo:
787
  with gr.Column(scale=1):
788
  max_pages = gr.Slider(
789
  minimum=1,
790
- maximum=50,
791
  value=1,
792
  step=1,
793
  label="Maximum Pages to Scrape",
 
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
  """
 
679
  sort_by = "relevance"
680
 
681
  # Call the scraper with sort option
682
+ # The imported scrape_and_format_hf_mcp_servers function
683
  # will print its own progress to the console.
684
+ md, json_data = scrape_and_format_hf_mcp_servers(max_pages, sort_by)
685
 
686
  return md, json_data
687
 
 
787
  with gr.Column(scale=1):
788
  max_pages = gr.Slider(
789
  minimum=1,
790
+ maximum=50,
791
  value=1,
792
  step=1,
793
  label="Maximum Pages to Scrape",