cppowboy commited on
Commit
c93f519
1 Parent(s): 11e7cde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -33,7 +33,8 @@ def respond( _question, _chat_bot,_app_cfg):
33
  "question": _question,
34
  })
35
  resp = resp.json()
36
- _answer = resp['data']['response']
 
37
  print(f'question: {_question}, answer: {_answer}')
38
  except Exception as e:
39
  print(traceback.format_exc())
 
33
  "question": _question,
34
  })
35
  resp = resp.json()
36
+ # _answer = resp['data']['response']
37
+ _answer = resp['response']
38
  print(f'question: {_question}, answer: {_answer}')
39
  except Exception as e:
40
  print(traceback.format_exc())