Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ st.sidebar.write("https://huggingface.co/alan-turing-institute/mt5-large-finetun
|
|
36 |
st.sidebar.write("For Xtreme XNLI Dataset:")
|
37 |
st.sidebar.write("https://www.tensorflow.org/datasets/catalog/xtreme_xnli")
|
38 |
|
39 |
-
st.subheader("Select Text
|
40 |
st.text_area("Text #1", text_1, height=128)
|
41 |
st.text_area("Text #2", text_2, height=128)
|
42 |
st.write(f"Label List #1: {list2text(label_list_1)}")
|
@@ -61,7 +61,7 @@ elif labels == "New Label List":
|
|
61 |
if hypothesis == "Hypothesis #1": hypothesis_template = hypothesis_1
|
62 |
elif hypothesis == "Hypothesis #2": hypothesis_template = hypothesis_2
|
63 |
elif labels == "New Hypothesis":
|
64 |
-
hypothesis_template = st.text_area("Hypothesis Template for NLI (Pls
|
65 |
|
66 |
Run_Button = st.button("Run", key=None)
|
67 |
if Run_Button == True:
|
|
|
36 |
st.sidebar.write("For Xtreme XNLI Dataset:")
|
37 |
st.sidebar.write("https://www.tensorflow.org/datasets/catalog/xtreme_xnli")
|
38 |
|
39 |
+
st.subheader("Select Text, Label List and Hyphothesis")
|
40 |
st.text_area("Text #1", text_1, height=128)
|
41 |
st.text_area("Text #2", text_2, height=128)
|
42 |
st.write(f"Label List #1: {list2text(label_list_1)}")
|
|
|
61 |
if hypothesis == "Hypothesis #1": hypothesis_template = hypothesis_1
|
62 |
elif hypothesis == "Hypothesis #2": hypothesis_template = hypothesis_2
|
63 |
elif labels == "New Hypothesis":
|
64 |
+
hypothesis_template = st.text_area("Hypothesis Template for NLI (Pls use similar format of examples)", value="", height=16)
|
65 |
|
66 |
Run_Button = st.button("Run", key=None)
|
67 |
if Run_Button == True:
|