Update app.py
Browse files
app.py
CHANGED
@@ -42,13 +42,13 @@ st.write(f"Label List #2: {list2text(label_list_2)}")
|
|
42 |
text = st.radio("Select Text", ("Text #1", "Text #2", "New Text"))
|
43 |
labels = st.radio("Select Label List", ("Label List #1", "Label List #2", "New Label List"))
|
44 |
|
45 |
-
if text == "Text #1":
|
46 |
-
elif text == "Text #2":
|
47 |
elif text == "New Text":
|
48 |
sequence_to_classify = st.text_area("New Text", value="", height=128)
|
49 |
|
50 |
-
if labels == "Label List #1":
|
51 |
-
elif labels == "Label List #2":
|
52 |
elif labels == "New Label List":
|
53 |
candidate_labels = st.text_area("New Label List (Pls Input as comma-separated)", value="", height=16).split(",")
|
54 |
|
|
|
42 |
text = st.radio("Select Text", ("Text #1", "Text #2", "New Text"))
|
43 |
labels = st.radio("Select Label List", ("Label List #1", "Label List #2", "New Label List"))
|
44 |
|
45 |
+
if text == "Text #1": sequence_to_classify = text_1
|
46 |
+
elif text == "Text #2": sequence_to_classify = text_2
|
47 |
elif text == "New Text":
|
48 |
sequence_to_classify = st.text_area("New Text", value="", height=128)
|
49 |
|
50 |
+
if labels == "Label List #1": candidate_labels = label_list_1
|
51 |
+
elif labels == "Label List #2": candidate_labels = label_list_2
|
52 |
elif labels == "New Label List":
|
53 |
candidate_labels = st.text_area("New Label List (Pls Input as comma-separated)", value="", height=16).split(",")
|
54 |
|