Abhilashvj commited on
Commit
5ddd6eb
·
1 Parent(s): e54f2a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -323,8 +323,9 @@ if st.session_state.results:
323
  # markdown(f'**Source:** {source} \n {context[:start_idx] } {str(annotation(answer, "ANSWER", "#8ef"))} {context[end_idx:]} \n '),
324
  # unsafe_allow_html=True,
325
  # )
 
326
  st.write(
327
- markdown(f"Answer: {result} \n Extracted from context {'\n'.join(contexts)}"),
328
  unsafe_allow_html=True,
329
  )
330
  except:
 
323
  # markdown(f'**Source:** {source} \n {context[:start_idx] } {str(annotation(answer, "ANSWER", "#8ef"))} {context[end_idx:]} \n '),
324
  # unsafe_allow_html=True,
325
  # )
326
+ all_contexts = '\n'.join(contexts)
327
  st.write(
328
+ markdown(f"Answer: {result} \n Extracted from context {all_contexts}"),
329
  unsafe_allow_html=True,
330
  )
331
  except: