Spaces:
Sleeping
Sleeping
Update services/location_service.py
Browse files
services/location_service.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
from geopy.geocoders import Nominatim
|
| 4 |
from geopy.exc import GeocoderTimedOut, GeocoderUnavailable
|
| 5 |
from models.location_models import LocationData, Coordinates, ErrorResponse
|
| 6 |
-
|
| 7 |
class LocationService:
|
| 8 |
@staticmethod
|
| 9 |
def extract_location_entities(ner_results):
|
|
|
|
| 3 |
from geopy.geocoders import Nominatim
|
| 4 |
from geopy.exc import GeocoderTimedOut, GeocoderUnavailable
|
| 5 |
from models.location_models import LocationData, Coordinates, ErrorResponse
|
| 6 |
+
import requests
|
| 7 |
class LocationService:
|
| 8 |
@staticmethod
|
| 9 |
def extract_location_entities(ner_results):
|