Omkar008 commited on
Commit
9073613
·
verified ·
1 Parent(s): 26c3600

Update services/location_service.py

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