syubraj commited on
Commit
35d7008
1 Parent(s): af9db04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"Similarity score: {similarity:.4f}"
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 = [