Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def detect_language(text):
|
|
22 |
# Set up OpenAI API key (replace with your key)
|
23 |
openai.api_key = "YOUR_OPENAI_API_KEY"
|
24 |
|
25 |
-
def extract_files_from_folder(
|
26 |
"""Scans a folder and its subfolders for PDF, TXT, and CSV files."""
|
27 |
extracted_files = {"pdf": [], "txt": [], "csv": []}
|
28 |
|
|
|
22 |
# Set up OpenAI API key (replace with your key)
|
23 |
openai.api_key = "YOUR_OPENAI_API_KEY"
|
24 |
|
25 |
+
def extract_files_from_folder(folder_path):
|
26 |
"""Scans a folder and its subfolders for PDF, TXT, and CSV files."""
|
27 |
extracted_files = {"pdf": [], "txt": [], "csv": []}
|
28 |
|