From e9feae12ad2119055ffe4347374d51b4170be1ba Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Wed, 3 Jan 2024 10:50:22 +0000 Subject: [PATCH] path corrected for word_addin --- tts_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tts_server.py b/tts_server.py index af77c99..2906b96 100644 --- a/tts_server.py +++ b/tts_server.py @@ -1057,7 +1057,7 @@ async def tts_generate( #### Word Add-in Sharing #### ############################# # Mount the static files from the 'word_addin' directory -app.mount('/api/word_addin', StaticFiles(directory='templates/word_addin'), name='word_addin') +app.mount("/api/word_addin", StaticFiles(directory=os.path.join(this_dir / 'templates' / 'word_addin')), name="word_addin") ################################################### #### Webserver Startup & Initial model Loading ####