forked from React-Group/interstellar_ai
super cool fix
This commit is contained in:
parent
128cc37cf5
commit
92d6688d64
2 changed files with 12 additions and 3 deletions
|
@ -103,7 +103,8 @@ class API:
|
|||
audio = request.args.get('audio')
|
||||
option = request.args.get('option')
|
||||
if recognition_type == "basic":
|
||||
return jsonify({'status': 200, 'response': self.voice.basic_recognition(audio, option)})
|
||||
text = self.voice.basic_recognition(audio, option)
|
||||
return jsonify({'status': 200, 'response': text})
|
||||
|
||||
return jsonify({'status': 401, 'response': "Invalid type"})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue