Docfile commited on
Commit
99e6dc7
·
verified ·
1 Parent(s): 0ff6bb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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