Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
@@ -75,9 +75,9 @@ text_field = "text" if "text" in data.features else list(data.features.keys())[0
|
|
75 |
|
76 |
|
77 |
@st.cache_data(show_spinner=False)
|
78 |
-
def prepare_combined_texts(
|
79 |
combined = []
|
80 |
-
for gc, c in zip(
|
81 |
gc_str = gc if gc else ""
|
82 |
c_str = c if c else ""
|
83 |
combined.append(f"General complaint: {gc_str}. Additional details: {c_str}")
|
|
|
75 |
|
76 |
|
77 |
@st.cache_data(show_spinner=False)
|
78 |
+
def prepare_combined_texts(_dataset):
|
79 |
combined = []
|
80 |
+
for gc, c in zip(_dataset["general_complaint"], _dataset["complaints"]):
|
81 |
gc_str = gc if gc else ""
|
82 |
c_str = c if c else ""
|
83 |
combined.append(f"General complaint: {gc_str}. Additional details: {c_str}")
|