Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -2
src/streamlit_app.py
CHANGED
|
@@ -67,7 +67,7 @@ st.link_button("by nlpblogs", "https://nlpblogs.com", type="tertiary")
|
|
| 67 |
expander = st.expander("**Important notes**")
|
| 68 |
expander.write("""**How to Use:**
|
| 69 |
1. Type or paste your text into the text area below, then press Ctrl + Enter.
|
| 70 |
-
2. Click the 'Add Question' button to add your question to the Record of Questions. You can manage your questions by deleting them one by one
|
| 71 |
3. Click the 'Extract Answers' button to extract the answer to your question.
|
| 72 |
|
| 73 |
Results are presented in an easy-to-read table, visualized in an interactive tree map and are available for download.
|
|
@@ -165,7 +165,6 @@ if st.session_state.user_labels:
|
|
| 165 |
st.write(f"- {label}")
|
| 166 |
with col_delete:
|
| 167 |
st.button("Delete", key=f"delete_{label}", on_click=delete_label, args=(label,))
|
| 168 |
-
st.button("Clear all questions", on_click=lambda: st.session_state.update({'user_labels': []}))
|
| 169 |
else:
|
| 170 |
st.info("No questions defined yet. Use the input above to add one.")
|
| 171 |
|
|
|
|
| 67 |
expander = st.expander("**Important notes**")
|
| 68 |
expander.write("""**How to Use:**
|
| 69 |
1. Type or paste your text into the text area below, then press Ctrl + Enter.
|
| 70 |
+
2. Click the 'Add Question' button to add your question to the Record of Questions. You can manage your questions by deleting them one by one.
|
| 71 |
3. Click the 'Extract Answers' button to extract the answer to your question.
|
| 72 |
|
| 73 |
Results are presented in an easy-to-read table, visualized in an interactive tree map and are available for download.
|
|
|
|
| 165 |
st.write(f"- {label}")
|
| 166 |
with col_delete:
|
| 167 |
st.button("Delete", key=f"delete_{label}", on_click=delete_label, args=(label,))
|
|
|
|
| 168 |
else:
|
| 169 |
st.info("No questions defined yet. Use the input above to add one.")
|
| 170 |
|