Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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())
|