Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)}"}),
|
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():
|