Spaces:
Sleeping
Sleeping
kgauvin603
commited on
Commit
•
fbbf62f
1
Parent(s):
2d3d13f
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ embedding_model = SentenceTransformerEmbeddings(model_name='thenlper/gte-large')
|
|
63 |
import subprocess
|
64 |
|
65 |
# Command to unzip the file
|
66 |
-
command = "unzip Dataset-10k.zip -d dataset"
|
67 |
|
68 |
# Execute the command
|
69 |
try:
|
@@ -72,7 +72,7 @@ except subprocess.CalledProcessError as e:
|
|
72 |
print(f"An error occurred: {e}")
|
73 |
|
74 |
# Provide pdf_folder_location
|
75 |
-
pdf_folder_location = "dataset"
|
76 |
|
77 |
# Load the directory to pdf_loader
|
78 |
pdf_loader = PyPDFDirectoryLoader(pdf_folder_location)
|
|
|
63 |
import subprocess
|
64 |
|
65 |
# Command to unzip the file
|
66 |
+
command = "unzip kgauvin603/rag-10k-analysis/Dataset-10k.zip -d dataset"
|
67 |
|
68 |
# Execute the command
|
69 |
try:
|
|
|
72 |
print(f"An error occurred: {e}")
|
73 |
|
74 |
# Provide pdf_folder_location
|
75 |
+
pdf_folder_location = "kgauvin603/rag-10k-analysis/dataset"
|
76 |
|
77 |
# Load the directory to pdf_loader
|
78 |
pdf_loader = PyPDFDirectoryLoader(pdf_folder_location)
|