domenicrosati commited on
Commit
a14da38
β€’
1 Parent(s): 5ed186b

add badge for abstracts

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,8 +109,8 @@ def find_source(text, docs):
109
  return {
110
  'citation_statement': "ABSTRACT: " + remove_html(doc[3]).replace('<strong class="highlight">', '').replace('</strong>', ''),
111
  'text': new_text,
112
- 'from': '...',
113
- 'supporting': '...',
114
  'source_title': "ABSTRACT of " + remove_html(doc[2]),
115
  'source_link': f"https://scite.ai/reports/{doc[0]}"
116
  }
 
109
  return {
110
  'citation_statement': "ABSTRACT: " + remove_html(doc[3]).replace('<strong class="highlight">', '').replace('</strong>', ''),
111
  'text': new_text,
112
+ 'from': doc[0],
113
+ 'supporting': doc[0],
114
  'source_title': "ABSTRACT of " + remove_html(doc[2]),
115
  'source_link': f"https://scite.ai/reports/{doc[0]}"
116
  }