SergeyO7 commited on
Commit
c36f3b7
·
verified ·
1 Parent(s): ab0174f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,6 +19,7 @@ load_dotenv()
19
 
20
  DATA_PATH = "" # Specify the path to your file
21
  PROMPT_TEMPLATE = """
 
22
  Ответь на вопрос, используя только следующий контекст:
23
  {context}
24
  ---
@@ -77,7 +78,7 @@ def initialize_vectorstore():
77
 
78
  def load_documents():
79
  """Load documents from the specified file path."""
80
- file_path = os.path.join(DATA_PATH, "pl250320252.md")
81
  if not os.path.exists(file_path):
82
  raise FileNotFoundError(f"Файл {file_path} не найден")
83
  loader = UnstructuredMarkdownLoader(file_path)
 
19
 
20
  DATA_PATH = "" # Specify the path to your file
21
  PROMPT_TEMPLATE = """
22
+
23
  Ответь на вопрос, используя только следующий контекст:
24
  {context}
25
  ---
 
78
 
79
  def load_documents():
80
  """Load documents from the specified file path."""
81
+ file_path = os.path.join(DATA_PATH, "https://huggingface.co/spaces/SergeyO7/Langchained_PGPS_RAG/resolve/main/pl250320252.md")
82
  if not os.path.exists(file_path):
83
  raise FileNotFoundError(f"Файл {file_path} не найден")
84
  loader = UnstructuredMarkdownLoader(file_path)