Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def get_meta_score(url,question_embedding):
|
|
103 |
|
104 |
# Calculate cosine similarity
|
105 |
cosine_scores = util.cos_sim(question_embedding, emb)
|
106 |
-
return cosine_scores.item()
|
107 |
except:
|
108 |
return 0
|
109 |
|
|
|
103 |
|
104 |
# Calculate cosine similarity
|
105 |
cosine_scores = util.cos_sim(question_embedding, emb)
|
106 |
+
return cosine_scores.item()
|
107 |
except:
|
108 |
return 0
|
109 |
|