Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
fd3b5e9
1
Parent(s):
8152b02
log response
Browse files
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']
|