Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,7 @@ from sklearn.metrics.pairwise import cosine_similarity
|
|
| 10 |
from typing_extensions import Doc
|
| 11 |
import gradio as gr
|
| 12 |
df = pd.read_csv('dataframe.csv')
|
|
|
|
| 13 |
tfidf_matrix = pd.read_csv('tfidf_matrix.csv', header=None).values
|
| 14 |
tfidf_matrix.shape
|
| 15 |
word2vec_matrix = pd.read_csv('word2vecmatrix.csv',header=None).values
|
|
|
|
| 10 |
from typing_extensions import Doc
|
| 11 |
import gradio as gr
|
| 12 |
df = pd.read_csv('dataframe.csv')
|
| 13 |
+
df['Course Number'] = df['Course Number'].astype(str)
|
| 14 |
tfidf_matrix = pd.read_csv('tfidf_matrix.csv', header=None).values
|
| 15 |
tfidf_matrix.shape
|
| 16 |
word2vec_matrix = pd.read_csv('word2vecmatrix.csv',header=None).values
|