Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,7 @@ def save_chat_data(chat_data):
|
|
| 155 |
|
| 156 |
# Function to handle uploaded text or PDF files and convert PDF to txt
|
| 157 |
def handle_uploaded_file(uploaded_file):
|
| 158 |
-
dataset_dir = "./
|
| 159 |
dataset_path = Path(dataset_dir) / f"{uploaded_file.name}.txt"
|
| 160 |
|
| 161 |
# Check if the file is a PDF
|
|
|
|
| 155 |
|
| 156 |
# Function to handle uploaded text or PDF files and convert PDF to txt
|
| 157 |
def handle_uploaded_file(uploaded_file):
|
| 158 |
+
dataset_dir = "./dataset"
|
| 159 |
dataset_path = Path(dataset_dir) / f"{uploaded_file.name}.txt"
|
| 160 |
|
| 161 |
# Check if the file is a PDF
|