Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def calculate_similarity(sentence1, sentence2):
|
|
12 |
# Calculate cosine similarity
|
13 |
similarity = np.dot(embeddings[0], embeddings[1]) / (np.linalg.norm(embeddings[0]) * np.linalg.norm(embeddings[1]))
|
14 |
|
15 |
-
return f"
|
16 |
|
17 |
# Define example inputs
|
18 |
examples = [
|
|
|
12 |
# Calculate cosine similarity
|
13 |
similarity = np.dot(embeddings[0], embeddings[1]) / (np.linalg.norm(embeddings[0]) * np.linalg.norm(embeddings[1]))
|
14 |
|
15 |
+
return f"समानता स्कोर: {similarity:.4f}"
|
16 |
|
17 |
# Define example inputs
|
18 |
examples = [
|