Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def question_answering(context, question):
|
|
31 |
answer = answer["answer"]
|
32 |
# display the result in container
|
33 |
container = st.container(border=True)
|
34 |
-
container.write("<h5><b>Answer:</b></h5>" + answer + "<p><small>F1 score: " + answer_score + "</small></p><br>", unsafe_allow_html=True)
|
35 |
|
36 |
# choose the source with different tabs
|
37 |
tab1, tab2 = st.tabs(["Input text", "Upload File"])
|
|
|
31 |
answer = answer["answer"]
|
32 |
# display the result in container
|
33 |
container = st.container(border=True)
|
34 |
+
container.write("<h5><b>Answer:</b></h5>" + answer + "<p><small>(F1 score: " + answer_score + ")</small></p><br>", unsafe_allow_html=True)
|
35 |
|
36 |
# choose the source with different tabs
|
37 |
tab1, tab2 = st.tabs(["Input text", "Upload File"])
|