Spaces:
Running
Running
Update services/location_service.py
Browse files
services/location_service.py
CHANGED
@@ -85,7 +85,7 @@ class LocationService:
|
|
85 |
llm_prompt = LocationService.system_prompt(location)
|
86 |
response = LocationService.get_llm_response(llm_prompt)
|
87 |
# Extract city, state, and country using the logic from extract_location_entities
|
88 |
-
location_entities = json.loads(response
|
89 |
|
90 |
if location_entities:
|
91 |
city = location_entities.get('city')
|
|
|
85 |
llm_prompt = LocationService.system_prompt(location)
|
86 |
response = LocationService.get_llm_response(llm_prompt)
|
87 |
# Extract city, state, and country using the logic from extract_location_entities
|
88 |
+
location_entities = json.loads(response)
|
89 |
|
90 |
if location_entities:
|
91 |
city = location_entities.get('city')
|