Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -52,7 +52,7 @@ FIXED_CATEGORY_MAPPING = {
|
|
| 52 |
REVERSE_FIXED_CATEGORY_MAPPING = {label: category for category, label_list in FIXED_CATEGORY_MAPPING.items() for label in label_list}
|
| 53 |
|
| 54 |
# --- Default Custom Labels (New Requirement) ---
|
| 55 |
-
DEFAULT_CUSTOM_LABELS = "
|
| 56 |
|
| 57 |
# --- Dynamic Color Generator for Custom Labels ---
|
| 58 |
COLOR_PALETTE = cycle(px.colors.qualitative.Alphabet)
|
|
@@ -576,7 +576,7 @@ st.markdown(f"**Word count:** {word_count}/{word_limit}")
|
|
| 576 |
|
| 577 |
# --- Custom Labels Input (Now Pre-populated and Editable) ---
|
| 578 |
custom_labels_text = st.text_area(
|
| 579 |
-
"**Optional:** Edit the comma-separated entity labels below to define your own categories. Delete existing labels or add new ones.",
|
| 580 |
height=60,
|
| 581 |
key='custom_labels_input',
|
| 582 |
# Placeholder is now unnecessary as the value is pre-populated
|
|
|
|
| 52 |
REVERSE_FIXED_CATEGORY_MAPPING = {label: category for category, label_list in FIXED_CATEGORY_MAPPING.items() for label in label_list}
|
| 53 |
|
| 54 |
# --- Default Custom Labels (New Requirement) ---
|
| 55 |
+
DEFAULT_CUSTOM_LABELS = "person, location, organization, product, date, time, event"
|
| 56 |
|
| 57 |
# --- Dynamic Color Generator for Custom Labels ---
|
| 58 |
COLOR_PALETTE = cycle(px.colors.qualitative.Alphabet)
|
|
|
|
| 576 |
|
| 577 |
# --- Custom Labels Input (Now Pre-populated and Editable) ---
|
| 578 |
custom_labels_text = st.text_area(
|
| 579 |
+
"**Optional:** Edit the comma-separated entity labels below to define your own categories. Delete existing labels or add new ones. **(Recommendation: 10-30 distinct labels per run for best results.)**",
|
| 580 |
height=60,
|
| 581 |
key='custom_labels_input',
|
| 582 |
# Placeholder is now unnecessary as the value is pre-populated
|