From 5b174bab359e01e8a1f0ab651874987bc0e37add Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Sun, 17 Dec 2023 05:45:51 +0000 Subject: [PATCH] pull params correctly into HTML Only affects custom IP/ports. No changes otherwise. --- tts_server.py | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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