Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
abarolo authored and abarolo committed Aug 7, 2024
1 parent 9e387d6 commit 73d2299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

from api.barriers.models import Barrier
from api.barriers.tasks import get_barriers_overseas_region
from api.interactions.models import Interaction
from api.metadata.utils import get_sector
from api.related_barriers.views import related_barriers, related_barriers_search
from api.related_barriers.views import related_barriers_search

logger = logging.getLogger(__name__)

Expand Down
7 changes: 1 addition & 6 deletions api/related_barriers/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
from typing import Dict, List, Optional

import numpy
import torch
from django.core.cache import cache
from django.db.models import CharField
from django.db.models import Value as V
from django.db.models.functions import Concat
from sentence_transformers import SentenceTransformer, util

from api.barriers.tasks import get_barriers_overseas_region
from api.interactions.models import Interaction
from api.metadata.utils import get_sector
from api.related_barriers.constants import BarrierEntry

Expand Down Expand Up @@ -216,7 +211,7 @@ def get_similar_barriers_searched(
log_score=None,
):

logger.info(f"(Related Barriers): get_similar_barriers_seaarched")
logger.info("(Related Barriers): get_similar_barriers_searched")
barrier_ids = self.get_barrier_ids()

if not barrier_ids:
Expand Down

0 comments on commit 73d2299

Please sign in to comment.