diff --git a/tts_server.py b/tts_server.py index a97439c..f3f3a0a 100644 --- a/tts_server.py +++ b/tts_server.py @@ -20,6 +20,7 @@ from fastapi import ( from fastapi.responses import JSONResponse, HTMLResponse, RedirectResponse, FileResponse from fastapi.templating import Jinja2Templates from fastapi.staticfiles import StaticFiles +from jinja2 import Template from contextlib import asynccontextmanager ########################### @@ -517,7 +518,6 @@ def list_files(directory): # Create an instance of Jinja2Templates for rendering HTML templates templates = Jinja2Templates(directory=this_dir / "templates") - # Create a dependency to get the current JSON data def get_json_data(): with open(this_dir / "config.json", "r") as json_file: @@ -783,10 +783,10 @@ simple_webpage = """

AllTalk TTS for Text generation webUI

-

Text generation webUI webpage here and documentation here

+

Text generation webUI webpage here and documentation here

AllTalk Github here - +

Table of Contents