Spaces:
Running
Running
Update services/location_service.py
Browse files
services/location_service.py
CHANGED
@@ -60,7 +60,7 @@ class LocationService:
|
|
60 |
llm_prompt = LocationService.system_prompt(location)
|
61 |
response = model.generate_content(llm_prompt)
|
62 |
# Extract city, state, and country using the logic from extract_location_entities
|
63 |
-
location_entities = json.loads(response)
|
64 |
|
65 |
if location_entities:
|
66 |
city = location_entities.get('city')
|
|
|
60 |
llm_prompt = LocationService.system_prompt(location)
|
61 |
response = model.generate_content(llm_prompt)
|
62 |
# Extract city, state, and country using the logic from extract_location_entities
|
63 |
+
location_entities = json.loads(response.text)
|
64 |
|
65 |
if location_entities:
|
66 |
city = location_entities.get('city')
|