thechaiexperiment commited on
Commit
5e4a5e1
·
1 Parent(s): e352a9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -566,7 +566,7 @@ async def chat_endpoint(chat_query: ChatQuery):
566
 
567
  @app.post("/api/resources")
568
  async def resources_endpoint(profile: MedicalProfile):
569
- query_text = profile.chronic_conditions + profile.daily_symptoms
570
  query_embedding = embed_query_text(query_text) # Embed the query text
571
  embeddings_data = load_embeddings ()
572
  folder_path = 'downloaded_articles/downloaded_articles'
 
566
 
567
  @app.post("/api/resources")
568
  async def resources_endpoint(profile: MedicalProfile):
569
+ query_text = profile.conditions + profile.daily_symptoms
570
  query_embedding = embed_query_text(query_text) # Embed the query text
571
  embeddings_data = load_embeddings ()
572
  folder_path = 'downloaded_articles/downloaded_articles'