Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,8 @@ if option == "Extractive question answering":
|
|
| 46 |
with st.spinner(text="Getting answer..."):
|
| 47 |
answer = question_answerer(context=context, question=question)
|
| 48 |
answer = answer["answer"]
|
| 49 |
-
|
|
|
|
| 50 |
elif source == "I want to upload a file":
|
| 51 |
uploaded_file = st.file_uploader("Choose a .txt file to upload", type=["txt"])
|
| 52 |
if uploaded_file is not None:
|
|
|
|
| 46 |
with st.spinner(text="Getting answer..."):
|
| 47 |
answer = question_answerer(context=context, question=question)
|
| 48 |
answer = answer["answer"]
|
| 49 |
+
html_str = f"<p style='color:red;'>{answer}</p>"
|
| 50 |
+
st.markdown(html_str, unsafe_allow_html=True)
|
| 51 |
elif source == "I want to upload a file":
|
| 52 |
uploaded_file = st.file_uploader("Choose a .txt file to upload", type=["txt"])
|
| 53 |
if uploaded_file is not None:
|