Skip to content

Commit

Permalink
fix: Error Code and Copy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rainmanjam committed Aug 27, 2024
1 parent e57cc13 commit eb9aa3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def transcribe():
# Check if either webhook_url or id is provided without the other
if (webhook_url and not id) or (id and not webhook_url):
logger.warning("Either webhook_url or id is missing in the request")
return jsonify({"response": "transcript or srt text is missing"}), 200
return jsonify({"message": "Either webhook_url or id is missing in the request"}), 500

job_id = str(uuid.uuid4())
logger.info(f"Generated job_id: {job_id}")
Expand Down

0 comments on commit eb9aa3c

Please sign in to comment.