Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,11 @@ if uploaded_files:
|
|
57 |
result = pd.concat(frames)
|
58 |
st.dataframe(result)
|
59 |
|
|
|
|
|
|
|
60 |
vec = TfidfVectorizer()
|
61 |
-
tf_idf = vec.fit_transform(
|
62 |
x = pd.DataFrame(tf_idf.toarray(), columns=vec.get_feature_names_out())
|
63 |
st.dataframe(x)
|
64 |
cosine_sim = cosine_similarity(tf_idf, tf_idf)
|
|
|
57 |
result = pd.concat(frames)
|
58 |
st.dataframe(result)
|
59 |
|
60 |
+
y = result[['Text']]
|
61 |
+
st.dataframe(y)
|
62 |
+
|
63 |
vec = TfidfVectorizer()
|
64 |
+
tf_idf = vec.fit_transform(y)
|
65 |
x = pd.DataFrame(tf_idf.toarray(), columns=vec.get_feature_names_out())
|
66 |
st.dataframe(x)
|
67 |
cosine_sim = cosine_similarity(tf_idf, tf_idf)
|