Cleanup
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ label_map = {0: "O", 1: "B-INDICATOR", 2: "I-INDICATOR", 3: "B-CAUSE", 4: "I-CAU
|
|
15 |
|
16 |
# Streamlit App
|
17 |
st.title("Attribution of Causality")
|
18 |
-
st.write("Tags indicators and causes. GER only (
|
19 |
|
20 |
# Text input for sentences
|
21 |
sentences_input = st.text_area("Sentences (one per line)", "\n".join([
|
@@ -77,6 +77,6 @@ if st.button("Analyze Sentences"):
|
|
77 |
output_sentence = " ".join(formatted_output)
|
78 |
|
79 |
# Display formatted sentence with Streamlit
|
80 |
-
st.write(f"**
|
81 |
-
st.markdown(f"**Labeled
|
82 |
st.write("---")
|
|
|
15 |
|
16 |
# Streamlit App
|
17 |
st.title("Attribution of Causality")
|
18 |
+
st.write("Tags indicators and causes. GER only (atm)")
|
19 |
|
20 |
# Text input for sentences
|
21 |
sentences_input = st.text_area("Sentences (one per line)", "\n".join([
|
|
|
77 |
output_sentence = " ".join(formatted_output)
|
78 |
|
79 |
# Display formatted sentence with Streamlit
|
80 |
+
st.write(f"**Sentence:** {sentence}")
|
81 |
+
st.markdown(f"**Labeled:** {output_sentence}", unsafe_allow_html=True)
|
82 |
st.write("---")
|