diff --git a/.idea/BarkTalk.iml b/.idea/BarkTalk.iml
index 848da22..86a0a88 100644
--- a/.idea/BarkTalk.iml
+++ b/.idea/BarkTalk.iml
@@ -7,7 +7,7 @@
-
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 90f665f..5021713 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -3,5 +3,5 @@
-
+
\ No newline at end of file
diff --git a/app.py b/app.py
index 55e84fe..06ec2aa 100644
--- a/app.py
+++ b/app.py
@@ -61,12 +61,17 @@ def ask(language: str):
os.remove(secure_file_path)
+ if prompt is None:
+ return jsonify({"data": None,
+ "message": "Google Speech Recognition could not understand audio",
+ "status": "success"}), 400
+
engine = gpt_engine.GptEngine()
answer_text = engine.command(prompt=prompt)
exact_answer_voice_name = text_to_speech.convert(text=answer_text,
- language=language)
+ language=language)
data = {
"prompt": prompt,
diff --git a/requirements.txt b/requirements.txt
index c9c4476..a24deb0 100644
Binary files a/requirements.txt and b/requirements.txt differ