JuanMa360 commited on
Commit
df6345d
1 Parent(s): 22d38ae

refactor: encode

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -30,13 +30,12 @@ def slow_api_response(message, history, property_id="c0ced2220b87fc23762facf6171
30
 
31
  else:
32
  api_response = response.text
33
- api_response = api_response.encode().decode('unicode_escape')
34
  print(api_response)
35
 
36
  #if property_id == 'development_one':
37
  response = json.loads(api_response)
38
- api_response = response['next_actions']
39
- api_response = api_response[0].get('value')
40
  print(api_response)
41
 
42
 
 
30
 
31
  else:
32
  api_response = response.text
33
+ #api_response = api_response.encode().decode('unicode_escape')
34
  print(api_response)
35
 
36
  #if property_id == 'development_one':
37
  response = json.loads(api_response)
38
+ api_response = response['next_actions'][0].get('value')
 
39
  print(api_response)
40
 
41