Merge pull request 'fixed stuff?' (#23) from React-Group/interstellar_ai:main into main

Reviewed-on: https://interstellardevelopment.org/code/code/YasinOnm08/interstellar_ai/pulls/23
This commit is contained in:
YasinOnm08 2024-09-26 09:28:37 +02:00
commit 26fcc50f31
2 changed files with 3 additions and 2 deletions

View file

@ -100,7 +100,7 @@ class API:
@self.app.route('/interstellar_ai/api/voice_recognition', methods=['POST'])
def voice_recognition():
recognition_type = request.args.get('type')
audio = request.files['audio']
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)})

View file

@ -12,4 +12,5 @@ google-generativeai
python-weather
pycouchdb
pyttsx3
pip-licenses
pip-licenses
openai-whisper