ShraddhaGami commited on
Commit
09e3b5e
·
1 Parent(s): 9c9a6c6

update response in QnA

Browse files
pages/3_📈_Question_And_Answering.py CHANGED
@@ -27,6 +27,6 @@ if title:
27
  response_status_code, response = make_request(title)
28
  if response_status_code == 200:
29
  st.subheader('Generated answer')
30
- st.text_area(label=' ', value=str(response.get('text')), height=350)
31
  else:
32
  st.write(f"Unable to find any results. Response Error Code: {response_status_code}")
 
27
  response_status_code, response = make_request(title)
28
  if response_status_code == 200:
29
  st.subheader('Generated answer')
30
+ st.text_area(label=' ', value=str(response.get('answer')), height=350)
31
  else:
32
  st.write(f"Unable to find any results. Response Error Code: {response_status_code}")