JuanMa360 commited on
Commit
4bbb006
1 Parent(s): e4dcdd5

refactor: template response

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -2
app.py CHANGED
@@ -33,6 +33,7 @@ def slow_api_response(message, history, property_id="c0ced2220b87fc23762facf6171
33
  response = api_response.encode().decode('unicode_escape')
34
  response = json.loads(response)
35
  print(response)
 
36
  api_response = response['next_actions']
37
 
38
  api_response = api_response[0].get('value')
 
33
  response = api_response.encode().decode('unicode_escape')
34
  response = json.loads(response)
35
  print(response)
36
+ print(response.keys())
37
  api_response = response['next_actions']
38
 
39
  api_response = api_response[0].get('value')
requirements.txt CHANGED
@@ -1,3 +1,2 @@
1
  huggingface_hub==0.22.2
2
- requests==2.26.0
3
- gradio
 
1
  huggingface_hub==0.22.2
2
+ requests==2.26.0