path correction

This commit is contained in:
erew123 authored and GitHub committed 2024-09-18 07:31:55 +01:00
1 parent e36c67efe4
commit 375b2ba31e
1 file changed
+3 -2
+3 -2
View File
@@ -3,6 +3,7 @@ import threading
import signal import signal
import sys import sys
import os import os
from pathlib import Path
import gradio as gr import gradio as gr
import time import time
import requests import requests
@@ -988,8 +989,8 @@ def process_tts_request(instance, data, timeout):
def serve_audio(filename): def serve_audio(filename):
return send_from_directory(app.config['OUTPUT_FOLDER'], filename) return send_from_directory(app.config['OUTPUT_FOLDER'], filename)
# Make sure to update the path to match your actual output directory # Set the output folder to be 'outputs' in the current directory
app.config['OUTPUT_FOLDER'] = 'E:\\installtest\\alltalk_tts\\outputs' app.config['OUTPUT_FOLDER'] = str(Path(os.getcwd()) / 'outputs')
class SilentWSGIRequestHandler(WSGIRequestHandler): class SilentWSGIRequestHandler(WSGIRequestHandler):
def log_request(self, *args, **kwargs): def log_request(self, *args, **kwargs):