wbrooks commited on
Commit
283cc2c
·
1 Parent(s): 8c00443

remove print statements now that the join is working.

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -26,8 +26,6 @@ tfidf_query_docs = create_tfidf_search_function(
26
  coul_files_df = (pl.read_csv(googledrive_metadata_path)
27
  .with_columns(pl.col("path").str.strip_prefix("/").alias("path")))
28
 
29
- print(coul_files_df)
30
-
31
  app = FastAPI()
32
 
33
 
@@ -40,10 +38,6 @@ def default():
40
  def search(q: str = Query(..., description="Search query")):
41
  res_tfidf = tfidf_query_docs(q)
42
  res_sbert = sbert_query_docs(q)
43
-
44
- print(res_tfidf)
45
- print(res_sbert)
46
- print(res_sbert.join(res_tfidf, on='file', how = 'inner'))
47
 
48
  joined = (res_sbert.join(res_tfidf, on='file', how = 'inner')
49
  .join(coul_files_df, left_on="file", right_on = "path", how="inner")
 
26
  coul_files_df = (pl.read_csv(googledrive_metadata_path)
27
  .with_columns(pl.col("path").str.strip_prefix("/").alias("path")))
28
 
 
 
29
  app = FastAPI()
30
 
31
 
 
38
  def search(q: str = Query(..., description="Search query")):
39
  res_tfidf = tfidf_query_docs(q)
40
  res_sbert = sbert_query_docs(q)
 
 
 
 
41
 
42
  joined = (res_sbert.join(res_tfidf, on='file', how = 'inner')
43
  .join(coul_files_df, left_on="file", right_on = "path", how="inner")