Baction commited on
Commit
26c3380
·
1 Parent(s): da3bb8d

updated server

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -9,6 +9,7 @@ import pandas as pd
9
  from langchain.docstore.document import Document
10
  from langchain.text_splitter import RecursiveCharacterTextSplitter
11
  from langchain_community.retrievers import BM25Retriever
 
12
 
13
  # Load environment variables
14
  load_dotenv()
@@ -33,7 +34,8 @@ class GitHubMCPServer:
33
  def _initialize_cve_retriever(self):
34
  """Initialize the CVE retriever with the dataset"""
35
  try:
36
- csv_path = "dataset/cve.csv"
 
37
  if not os.path.exists(csv_path):
38
  print(f"⚠ CVE dataset not found at {csv_path}")
39
  return
 
9
  from langchain.docstore.document import Document
10
  from langchain.text_splitter import RecursiveCharacterTextSplitter
11
  from langchain_community.retrievers import BM25Retriever
12
+ from datasets import load_dataset
13
 
14
  # Load environment variables
15
  load_dotenv()
 
34
  def _initialize_cve_retriever(self):
35
  """Initialize the CVE retriever with the dataset"""
36
  try:
37
+ csv_path = load_dataset("Baction/cve")
38
+
39
  if not os.path.exists(csv_path):
40
  print(f"⚠ CVE dataset not found at {csv_path}")
41
  return