Commit c0c0cd8 1 parent 3709b38 commit c0c0cd8 Copy full SHA for c0c0cd8
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ export default function InboxPage() {
472
472
return (
473
473
< Accordion . Item
474
474
style = { {
475
- "border-left" : `6px solid ${ computeColor (
475
+ borderLeft : `6px solid ${ computeColor (
476
476
// Math.round((document.confidence / 0.8) * 100) / 100
477
477
Math . round ( document . confidence * 100 ) / 100 ,
478
478
) } `,
Original file line number Diff line number Diff line change @@ -67,12 +67,14 @@ def map(self):
67
67
docs .append (self .documents [cur_idx : cur_idx + num_docs ])
68
68
cur_idx += num_docs
69
69
docs = [[doc .map () for doc in doc_list ] for doc_list in docs ]
70
+ for i , doc_list in enumerate (docs ):
71
+ for j , doc in enumerate (doc_list ):
72
+ doc ["confidence" ] = doc_confs [i ][j ]
70
73
return {
71
74
"id" : self .id ,
72
75
"content" : self .response ,
73
76
"questions" : self .questions ,
74
77
"documents" : docs ,
75
- "document_confidences" : doc_confs ,
76
78
"confidence" : self .confidence ,
77
79
"emailId" : self .email_id ,
78
80
}
You can’t perform that action at this time.
0 commit comments