norygano commited on
Commit
7fdb2a4
·
1 Parent(s): ae44eb7
Files changed (1) hide show
  1. app.py +3 -3
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 (for now)")
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"**Original Sentence:** {sentence}")
81
- st.markdown(f"**Labeled Output:** {output_sentence}", unsafe_allow_html=True)
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("---")