DaisyMao commited on
Commit
56bbc68
·
verified ·
1 Parent(s): 806d3a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ key_mapping = {'LABEL_0':'negative','LABEL_1':'neutral','LABEL_2':'positive'}
21
  def query(data):
22
  response = requests.post(API_URL, headers=headers, json=data)
23
  list_json = response.json()
24
- return "V2"+json.dumps([{k: key_mapping.get(v, v) for k, v in dict_t.items()} for dict_t in list_json], indent=4)
25
 
26
 
27
  def greet(howareyoufeeling):
 
21
  def query(data):
22
  response = requests.post(API_URL, headers=headers, json=data)
23
  list_json = response.json()
24
+ return "V2"+json.dumps(list_json, indent=4)
25
 
26
 
27
  def greet(howareyoufeeling):