thechaiexperiment commited on
Commit
a695e3b
·
verified ·
1 Parent(s): aa0ab0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -342,7 +342,7 @@ def retrieve_document_texts(doc_ids, folder_path='downloaded_articles/downloaded
342
  texts.append("")
343
  return texts
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)
@@ -764,6 +764,7 @@ async def recipes_endpoint(profile: MedicalProfile):
764
  scored_documents.sort(key=lambda x: x[0], reverse=True) # Sort by score
765
 
766
  # Load recipe metadata from DataFrame
 
767
  file_path = 'recipes_metadata.xlsx'
768
  metadata_path = 'recipes_metadata.xlsx'
769
  metadata_df = pd.read_excel(file_path)
 
342
  texts.append("")
343
  return texts
344
 
345
+ def retrieve_rec_texts(document_ids, folder_path='downloaded_articles/downloaded_articles', metadata_path = 'recipes_metadata.xlsx'):
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)
 
764
  scored_documents.sort(key=lambda x: x[0], reverse=True) # Sort by score
765
 
766
  # Load recipe metadata from DataFrame
767
+ folder_path='downloaded_articles/downloaded_articles'
768
  file_path = 'recipes_metadata.xlsx'
769
  metadata_path = 'recipes_metadata.xlsx'
770
  metadata_df = pd.read_excel(file_path)