Update app.py
Browse files
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 |
|