Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Docker Setup #16

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: rm unused imports, correct hide server banner
  • Loading branch information
DuncanLHS committed Mar 3, 2024
commit 0e5af9ccc789f39abeba2015225ef77ce9638919
11 changes: 4 additions & 7 deletions engine.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import sys
import os
sys.path.insert(0, os.getcwd()+'/glados_tts')

import torch
from utils.tools import prepare_text
from scipy.io.wavfile import write
import time

from glados import tts_runner

sys.path.insert(0, os.getcwd()+'/glados_tts')

print("\033[1;94mINFO:\033[;97m Initializing TTS Engine...")

Expand Down Expand Up @@ -77,5 +73,6 @@ def synthesize(text):
return 'TTS Engine Failed'

cli = sys.modules['flask.cli']
cli.show_server_banner = lambda *x: None
# Hide server banner
os.environ['FLASK_ENV'] = 'production'
app.run(host="0.0.0.0", port=PORT)