Merge pull request 'Merge pull request 'Merge pull request 'Fixed the Models utilising useEffect' (#49) from sageTheDm/interstellar_ai:main into main' (#19) from React-Group/interstellar_ai:main into main' (#50) from sageTheDm/interstellar_ai:main into… #20

Merged
sageTheDm merged 24 commits from React-Group/interstellar_ai:main into main 2024-09-26 09:53:54 +02:00
Showing only changes of commit 787c158be1 - Show all commits

View file

@ -99,14 +99,14 @@ class API:
@self.app.route('/interstellar_ai/api/voice_recognition', methods=['POST'])
def voice_recognition():
recognition_type = request.args.get('type')
type = request.args.get('type')
audio = request.args.get('audio')
option = request.args.get('option')
if recognition_type == "basic":
if type == "basic":
text = self.voice.basic_recognition(audio, option)
return jsonify({'status': 200, 'response': text})
return jsonify({'status': 401, 'response': "Invalid type"})
else:
return jsonify({'status': 401, 'response': "Invalid type"})
@self.app.route('/interstellar_ai/api/weather', methods=['POST'])
def get_weather():