Antoine Chaffin commited on
Commit
17e53e4
·
1 Parent(s): f57987b
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -3,13 +3,13 @@ MCPyLate Server
3
  A Model Context Protocol server that provides search functionality using PyLate.
4
  """
5
 
6
- import subprocess
7
 
8
- subprocess.run(
9
- "pip install flash-attn --no-build-isolation",
10
- env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
11
- shell=True,
12
- )
13
  from typing import Any, Dict, List, Optional
14
 
15
  from core import MCPyLate
@@ -60,7 +60,11 @@ def register_tools(mcp: FastMCP, pylate: MCPyLate):
60
 
61
  def main():
62
  """Main entry point for the server."""
63
- snapshot_download(repo_id="leetcode_Reason-ModernColBERT", local_dir="indexes/")
 
 
 
 
64
  try:
65
  mcp = FastMCP("pylate-search-server")
66
 
 
3
  A Model Context Protocol server that provides search functionality using PyLate.
4
  """
5
 
6
+ # import subprocess
7
 
8
+ # subprocess.run(
9
+ # "pip install flash-attn --no-build-isolation",
10
+ # env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
11
+ # shell=True,
12
+ # )
13
  from typing import Any, Dict, List, Optional
14
 
15
  from core import MCPyLate
 
60
 
61
  def main():
62
  """Main entry point for the server."""
63
+ snapshot_download(
64
+ repo_id="lightonai/leetcode_reasonmoderncolbert",
65
+ local_dir="indexess/",
66
+ repo_type="dataset",
67
+ )
68
  try:
69
  mcp = FastMCP("pylate-search-server")
70