Spaces:
Runtime error
Runtime error
Ravi Pandey
commited on
Commit
•
19ebbaf
1
Parent(s):
050e095
Docker deploy
Browse files- caption_server.py +1 -1
caption_server.py
CHANGED
@@ -30,7 +30,7 @@ git_coco_pipeline = pipeline("image-to-text", model=git_model_name)
|
|
30 |
# Initialize the model for semantic similarity
|
31 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
32 |
|
33 |
-
classification_server_url = '
|
34 |
|
35 |
def calculate_similarity(caption1, caption2):
|
36 |
embeddings = model.encode([caption1, caption2], convert_to_tensor=True)
|
|
|
30 |
# Initialize the model for semantic similarity
|
31 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
32 |
|
33 |
+
classification_server_url = 'https://raviipandey-classification.hf.space/classify_text'
|
34 |
|
35 |
def calculate_similarity(caption1, caption2):
|
36 |
embeddings = model.encode([caption1, caption2], convert_to_tensor=True)
|