iamviveksrk commited on
Commit
f916292
1 Parent(s): 2ea27b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ def reset_results(*args):
38
 
39
  st.markdown('''# Welcome to **SRM RP explorer**!
40
  This QA demo uses a [Haystack Extractive QA Pipeline](https://haystack.deepset.ai/components/ready-made-pipelines#extractiveqapipeline) with
41
- an [InMemoryDocumentStore](https://haystack.deepset.ai/components/document-store) which contains abstracts of 17k+ research papers associated with SRM university''')
42
 
43
  query = st.text_input('Enter a query to get started:', value=st.session_state.question, max_chars=100, on_change=reset_results)
44
 
@@ -89,7 +89,7 @@ if st.session_state.results:
89
  answer, context = result["answer"], result["context"]
90
  start_idx = context.find(answer)
91
  end_idx = start_idx + len(answer)
92
- st.markdown(f"**Title:** [{result['title']}]({result['link']})")
93
  st.write(
94
  markdown(context[:start_idx] + str(annotation(body=answer, label="RELEVANT", background="#67a17a", color='#ffffff')) + context[end_idx:]),
95
  unsafe_allow_html=True,
 
38
 
39
  st.markdown('''# Welcome to **SRM RP explorer**!
40
  This QA demo uses a [Haystack Extractive QA Pipeline](https://haystack.deepset.ai/components/ready-made-pipelines#extractiveqapipeline) with
41
+ an [InMemoryDocumentStore](https://haystack.deepset.ai/components/document-store) which contains abstracts of 17k+ research papers associated with SRM university.''')
42
 
43
  query = st.text_input('Enter a query to get started:', value=st.session_state.question, max_chars=100, on_change=reset_results)
44
 
 
89
  answer, context = result["answer"], result["context"]
90
  start_idx = context.find(answer)
91
  end_idx = start_idx + len(answer)
92
+ st.markdown(f"### [{result['title']}]({result['link']})")
93
  st.write(
94
  markdown(context[:start_idx] + str(annotation(body=answer, label="RELEVANT", background="#67a17a", color='#ffffff')) + context[end_idx:]),
95
  unsafe_allow_html=True,