Rams901 commited on
Commit
968abba
1 Parent(s): f244e49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def retrieve_thoughts(query, n):
59
 
60
 
61
  chunks_1 = tier_1.groupby(['title', 'url']).apply(lambda x: "\n...\n".join(x.sort_values('id')['page_content'].values)).values
62
- tier_1_adjusted = tier_1.groupby(['title', 'url').first().reset_index()[['title', 'url', 'score']]
63
  tier_1_adjusted['ref'] = range(1, len(tier_1_adjusted) + 1 )
64
  tier_1_adjusted['content'] = chunks_1
65
 
 
59
 
60
 
61
  chunks_1 = tier_1.groupby(['title', 'url']).apply(lambda x: "\n...\n".join(x.sort_values('id')['page_content'].values)).values
62
+ tier_1_adjusted = tier_1.groupby(['title', 'url']).first().reset_index()[['title', 'url', 'score']]
63
  tier_1_adjusted['ref'] = range(1, len(tier_1_adjusted) + 1 )
64
  tier_1_adjusted['content'] = chunks_1
65