Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def thefuzz(text1, text2):
|
|
26 |
|
27 |
|
28 |
def tfidf(text1, text2):
|
|
|
29 |
t1_tfidf = vectorizer.fit_transform([text1])
|
30 |
t2_tfidf = vectorizer.transform([text2])
|
31 |
cosine_sim = cosine_similarity(t1_tfidf, t2_tfidf).flatten()[0]
|
|
|
26 |
|
27 |
|
28 |
def tfidf(text1, text2):
|
29 |
+
print('hello')
|
30 |
t1_tfidf = vectorizer.fit_transform([text1])
|
31 |
t2_tfidf = vectorizer.transform([text2])
|
32 |
cosine_sim = cosine_similarity(t1_tfidf, t2_tfidf).flatten()[0]
|