From 375b2ba31e7acdba718d52bef39c338e7b0dae85 Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Wed, 18 Sep 2024 07:31:55 +0100 Subject: [PATCH] path correction --- tts_mem.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tts_mem.py b/tts_mem.py index 7ea7f77..12699b3 100644 --- a/tts_mem.py +++ b/tts_mem.py @@ -3,6 +3,7 @@ import threading import signal import sys import os +from pathlib import Path import gradio as gr import time import requests @@ -988,8 +989,8 @@ def process_tts_request(instance, data, timeout): def serve_audio(filename): return send_from_directory(app.config['OUTPUT_FOLDER'], filename) -# Make sure to update the path to match your actual output directory -app.config['OUTPUT_FOLDER'] = 'E:\\installtest\\alltalk_tts\\outputs' +# Set the output folder to be 'outputs' in the current directory +app.config['OUTPUT_FOLDER'] = str(Path(os.getcwd()) / 'outputs') class SilentWSGIRequestHandler(WSGIRequestHandler): def log_request(self, *args, **kwargs):