Omkar008 commited on
Commit
3f5e4b0
·
verified ·
1 Parent(s): 44b9a76

Update services/location_service.py

Browse files
Files changed (1) hide show
  1. services/location_service.py +1 -1
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.text)
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')