Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ def index():
|
|
136 |
input_text = request.form['input_text']
|
137 |
source_language = request.form['source_language']
|
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 |
|
|
|
136 |
input_text = request.form['input_text']
|
137 |
source_language = request.form['source_language']
|
138 |
target_language = request.form['target_language']
|
139 |
+
translated_text = asyncio.run(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 |
|