Update for word add-in

This commit is contained in:
erew123 authored and GitHub committed 2024-01-03 01:28:56 +00:00
1 parent 3b5c4b9b68
commit f3b44424ef
1 file changed
+7
+7
View File
@@ -1052,6 +1052,13 @@ async def tts_generate(
except Exception as e:
return JSONResponse(content={"status": "generate-failure", "error": "An error occurred"}, status_code=500)
#############################
#### 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')
###################################################
#### Webserver Startup & Initial model Loading ####
###################################################