Update app.py
Browse files
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 "
|
96 |
-
return jsonify({"error": "No
|
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"]
|