From 84487585ebb7d1b39df8e3452e767416807ad34e Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 3 Jan 2023 07:57:29 -0500 Subject: [PATCH] Fix #376 could not build url for endpoint --- libretranslate/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretranslate/app.py b/libretranslate/app.py index cc48e4c..6375a05 100644 --- a/libretranslate/app.py +++ b/libretranslate/app.py @@ -705,7 +705,7 @@ def create_app(args): return jsonify( { - "translatedFileUrl": url_for('download_file', filename=translated_filename, _external=True) + "translatedFileUrl": url_for('Main app.download_file', filename=translated_filename, _external=True) } ) except Exception as e: