lynn-twinkl commited on
Commit ·
42f1b64
1
Parent(s): cf1fac1
Fixed necessity indexing
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ if uploaded_file is not None:
|
|
| 36 |
|
| 37 |
docs = df[freeform_col].to_list()
|
| 38 |
|
| 39 |
-
## 1. EXTRACT USAGE
|
| 40 |
|
| 41 |
"""
|
| 42 |
with st.spinner("Extracting usage with AI...", show_time=True):
|
|
@@ -47,7 +47,7 @@ if uploaded_file is not None:
|
|
| 47 |
st.dataframe(df[[freeform_col, 'Usage']])
|
| 48 |
|
| 49 |
"""
|
| 50 |
-
## 2. ASSIGN NECESSITY INDEX
|
| 51 |
|
| 52 |
df = df.join(df[freeform_col].apply(compute_necessity))
|
| 53 |
|
|
|
|
| 36 |
|
| 37 |
docs = df[freeform_col].to_list()
|
| 38 |
|
| 39 |
+
## --------- 1. EXTRACT USAGE -------------
|
| 40 |
|
| 41 |
"""
|
| 42 |
with st.spinner("Extracting usage with AI...", show_time=True):
|
|
|
|
| 47 |
st.dataframe(df[[freeform_col, 'Usage']])
|
| 48 |
|
| 49 |
"""
|
| 50 |
+
## -------- 2. ASSIGN NECESSITY INDEX ------------
|
| 51 |
|
| 52 |
df = df.join(df[freeform_col].apply(compute_necessity))
|
| 53 |
|