Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def index():
|
|
138 |
target_language = request.form['target_language']
|
139 |
translated_text = translate(input_text, source_language, target_language)
|
140 |
return jsonify({'translated_text': translated_text})
|
141 |
-
return render_template('
|
142 |
|
143 |
if __name__ == '__main__':
|
144 |
app.run(debug=True)
|
|
|
138 |
target_language = request.form['target_language']
|
139 |
translated_text = translate(input_text, source_language, target_language)
|
140 |
return jsonify({'translated_text': translated_text})
|
141 |
+
return render_template('traduction.html', source_languages=source_languages, target_languages=target_languages)
|
142 |
|
143 |
if __name__ == '__main__':
|
144 |
app.run(debug=True)
|