MSey commited on
Commit
200336b
·
verified ·
1 Parent(s): ba7e177

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -19,6 +19,7 @@ if user_input:
19
  with st.spinner('Generating response...'):
20
  response = pipe(contexted_ipnut)
21
  st.write("Response:")
 
22
  # Sorting response by the 'start' position to handle overlapping entities correctly
23
  response = sorted(response, key=lambda x: x['start'])
24
 
 
19
  with st.spinner('Generating response...'):
20
  response = pipe(contexted_ipnut)
21
  st.write("Response:")
22
+ st.markdown(response)
23
  # Sorting response by the 'start' position to handle overlapping entities correctly
24
  response = sorted(response, key=lambda x: x['start'])
25