UKURIKIYEYEZU commited on
Commit
d921ab4
·
verified ·
1 Parent(s): 2b631ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ output_parser = StructuredOutputParser.from_response_schemas(response_schemas)
38
  format_instructions = output_parser.get_format_instructions(only_json=True)
39
 
40
  # Folder containing PDF files
41
- folder_path = "/content/drive/MyDrive/Chatbot"
42
 
43
  # List to store questions and answers as tuples
44
  data = []
@@ -99,7 +99,7 @@ def chunk_text(text, max_length=500):
99
  return [text[i:i + max_length] for i in range(0, len(text), max_length)]
100
 
101
  # Specify the path to the PDF file
102
- pdf_path = "/content/drive/MyDrive/LAW Nº 59 ON THE CRIME OF GENOCIDE IDEOLOGY AND RELATED CRIMES.pdf"
103
  # List to hold context data
104
  context_data = []
105
 
 
38
  format_instructions = output_parser.get_format_instructions(only_json=True)
39
 
40
  # Folder containing PDF files
41
+ folder_path = "./"
42
 
43
  # List to store questions and answers as tuples
44
  data = []
 
99
  return [text[i:i + max_length] for i in range(0, len(text), max_length)]
100
 
101
  # Specify the path to the PDF file
102
+ pdf_path = "./LAW Nº 59 ON THE CRIME OF GENOCIDE IDEOLOGY AND RELATED CRIMES.pdf"
103
  # List to hold context data
104
  context_data = []
105