Update app.py
Browse files
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 = "
|
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 = "
|
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 |
|