Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -344,6 +344,7 @@ def retrieve_document_texts(doc_ids, folder_path='downloaded_articles/downloaded
|
|
344 |
|
345 |
def retrieve_rec_texts(document_ids, folder_path, metadata_path):
|
346 |
# Load metadata file to map document IDs to original file names
|
|
|
347 |
metadata_df = pd.read_excel(metadata_path)
|
348 |
# Ensure column names are as expected
|
349 |
if "id" not in metadata_df.columns or "original_file_name" not in metadata_df.columns:
|
|
|
344 |
|
345 |
def retrieve_rec_texts(document_ids, folder_path, metadata_path):
|
346 |
# Load metadata file to map document IDs to original file names
|
347 |
+
metadata_path = 'recipes_metadata.xlsx'
|
348 |
metadata_df = pd.read_excel(metadata_path)
|
349 |
# Ensure column names are as expected
|
350 |
if "id" not in metadata_df.columns or "original_file_name" not in metadata_df.columns:
|