Omkar008 commited on
Commit
3bf8504
·
verified ·
1 Parent(s): 2112f7c

Update services/location_service.py

Browse files
Files changed (1) hide show
  1. services/location_service.py +1 -1
services/location_service.py CHANGED
@@ -41,7 +41,7 @@ class LocationService:
41
 
42
  if location:
43
  # Assuming `app.nlp` is already initialized elsewhere and accessible
44
- ner_results = app.state.nlp(location)
45
 
46
  # Extract city, state, and country using the logic from extract_location_entities
47
  location_entities = LocationService.extract_location_entities(ner_results)
 
41
 
42
  if location:
43
  # Assuming `app.nlp` is already initialized elsewhere and accessible
44
+ ner_results = self.app.state.nlp(location)
45
 
46
  # Extract city, state, and country using the logic from extract_location_entities
47
  location_entities = LocationService.extract_location_entities(ner_results)