ulf1 / simiscore-semantic

An ML API to compute semantic similarity scores between sentence examples.
Apache License 2.0
0 stars 0 forks source link

Docker deployment possibly connects to the internet to downoad sbert model #13

Open knit-bee opened 2 years ago

knit-bee commented 2 years ago

when calling 'docker-compose up', sometime the following error occurs:

requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2/resolve/e04d38a7d68c60a7a95390045400a555127ab033/config_sentence_transformers.json

knit-bee commented 2 years ago

update: docker-compose up connects to the internet > error when no internet connection requests.exceptions.ConnectionError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0a8a9754e0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

ulf1 commented 2 years ago

details become more visible with

import logging
...
logging.basicConfig(
    level=logging.DEBUG,  # <<< Debug Level
    format="%(asctime)s [%(levelname)s] %(message)s",
    datefmt="%y-%m-%d %H:%M:%S")