mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-30 17:05:27 +08:00
by removing environment vars
This commit is contained in:
@@ -9,9 +9,6 @@ sys.path.append(now_dir)
|
||||
import wave
|
||||
import argparse
|
||||
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv("sha256.env")
|
||||
|
||||
import ChatTTS
|
||||
|
||||
from tools.audio import unsafe_float_to_int16
|
||||
|
||||
Vendored
-3
@@ -41,9 +41,6 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from dotenv import load_dotenv\n",
|
||||
"load_dotenv(\"ChatTTS/sha256.env\")\n",
|
||||
"\n",
|
||||
"import torch\n",
|
||||
"torch._dynamo.config.cache_size_limit = 64\n",
|
||||
"torch._dynamo.config.suppress_errors = True\n",
|
||||
|
||||
Vendored
-3
@@ -24,9 +24,6 @@
|
||||
" sys.path.append(root_dir)\n",
|
||||
" print(\"init root dir to\", root_dir)\n",
|
||||
"\n",
|
||||
"from dotenv import load_dotenv\n",
|
||||
"load_dotenv(os.path.join(root_dir, \"sha256.env\"))\n",
|
||||
"\n",
|
||||
"import torch\n",
|
||||
"torch._dynamo.config.cache_size_limit = 64\n",
|
||||
"torch._dynamo.config.suppress_errors = True\n",
|
||||
|
||||
@@ -10,9 +10,6 @@ import argparse
|
||||
|
||||
import gradio as gr
|
||||
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv("sha256.env")
|
||||
|
||||
from examples.web.funcs import *
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user