lokesh341 commited on
Commit
588d1a5
·
verified ·
1 Parent(s): 1d448a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -161,7 +161,7 @@ def transcribe():
161
  return jsonify({"text": transcribed_text, "salesforce_record": salesforce_response})
162
 
163
  except Exception as e:
164
- return jsonify({"error": f"Speech recognition error: {str(e)}"}), 50
165
  # ✅ MENU API
166
  @app.route("/menu", methods=["GET"])
167
  def get_menu():
 
161
  return jsonify({"text": transcribed_text, "salesforce_record": salesforce_response})
162
 
163
  except Exception as e:
164
+ return jsonify({"error": f"Speech recognition error: {str(e)}"}), 500
165
  # ✅ MENU API
166
  @app.route("/menu", methods=["GET"])
167
  def get_menu():