sujitb commited on
Commit
b25eee6
1 Parent(s): 0b02df4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -206,7 +206,11 @@ if QUESTION:
206
  d={}
207
  d['id']=id
208
  d['content']=r['metadata']['data']
 
209
  d['url']=r['id']
 
 
 
210
  meta_score= get_meta_score(r['id'],question_embedding)
211
  score=.5* r['score'] + .5*meta_score
212
  d['score']=score
 
206
  d={}
207
  d['id']=id
208
  d['content']=r['metadata']['data']
209
+ d['title']=r['metadata']['title']
210
  d['url']=r['id']
211
+ if ns=='webpages':
212
+ d['url']= r['metadata']['url']
213
+
214
  meta_score= get_meta_score(r['id'],question_embedding)
215
  score=.5* r['score'] + .5*meta_score
216
  d['score']=score