Spaces:
Running
Running
Update services/location_service.py
Browse files
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)
|