Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def extract_text_from_pdf(pdf_path, start_page=0, end_page=10):
|
|
14 |
return text
|
15 |
|
16 |
# Load your PDF file (you might want to upload it separately in Spaces)
|
17 |
-
pdf_path = "/
|
18 |
|
19 |
# Initialize the model
|
20 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
|
14 |
return text
|
15 |
|
16 |
# Load your PDF file (you might want to upload it separately in Spaces)
|
17 |
+
pdf_path = "https://huggingface.co/spaces/Khd-B/Study_Assistant/raw/main/Accounting.pdf" # Update this with the actual file path in Spaces
|
18 |
|
19 |
# Initialize the model
|
20 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|