Aboge commited on
Commit
93928ba
1 Parent(s): 4b2018f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,8 +92,8 @@ def translate():
92
 
93
  if "text" not in data:
94
  return jsonify({"error": "No text provided"}), 400
95
- if "source_language" not in data:
96
- return jsonify({"error": "No Source Language Provided"}), 400
97
 
98
  text_to_translate = data["text"]
99
  target_language = data["target"]
 
92
 
93
  if "text" not in data:
94
  return jsonify({"error": "No text provided"}), 400
95
+ if "target" not in data:
96
+ return jsonify({"error": "No Target Language Provided"}), 400
97
 
98
  text_to_translate = data["text"]
99
  target_language = data["target"]