Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def query(data):
|
|
22 |
response = requests.post(API_URL, headers=headers, json=data)
|
23 |
list_json = response.json()
|
24 |
json_resp = list_json[0]
|
25 |
-
return "V2"+json.dumps([{k: key_mapping.get(v, v) for k, v in temp_dict.items()} for temp_dict in json_resp])
|
26 |
|
27 |
|
28 |
def greet(howareyoufeeling):
|
|
|
22 |
response = requests.post(API_URL, headers=headers, json=data)
|
23 |
list_json = response.json()
|
24 |
json_resp = list_json[0]
|
25 |
+
return "V2"+json.dumps([{k: key_mapping.get(v, v) for k, v in temp_dict.items()} for temp_dict in json_resp], indent=4)
|
26 |
|
27 |
|
28 |
def greet(howareyoufeeling):
|