Suchinthana commited on
Commit
fd3b5e9
·
1 Parent(s): 8152b02

log response

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -74,6 +74,8 @@ def process_openai_response(query):
74
  # Generate GeoJSON from OpenAI response
75
  @spaces.GPU
76
  def generate_geojson(response):
 
 
77
  feature_type = response['output']['feature_representation']['type']
78
  city_names = response['output']['feature_representation']['cities']
79
  properties = response['output']['feature_representation']['properties']
 
74
  # Generate GeoJSON from OpenAI response
75
  @spaces.GPU
76
  def generate_geojson(response):
77
+ #log response
78
+ logger.info(f"OpenAI response: {response}")
79
  feature_type = response['output']['feature_representation']['type']
80
  city_names = response['output']['feature_representation']['cities']
81
  properties = response['output']['feature_representation']['properties']