chore: Dockerfile start api v3

This commit is contained in:
kevin.zhang 2024-05-08 17:13:04 +08:00
parent 89e352a174
commit ea285ed4db
2 changed files with 6 additions and 8 deletions

View File

@ -34,12 +34,9 @@ RUN if [ "$IMAGE_TYPE" != "elite" ]; then \
fi
# Copy the rest of the application
COPY . /workspace
# Copy the rest of the application
COPY . /workspace
EXPOSE 9871 9872 9873 9874 9880
CMD ["python", "webui.py"]
CMD ["python", "api_v3.py"]

View File

@ -101,6 +101,11 @@ import os
import sys
import traceback
from typing import Generator
now_dir = os.getcwd()
sys.path.append(now_dir)
sys.path.append("%s/GPT_SoVITS" % (now_dir))
import argparse
import subprocess
import wave
@ -118,10 +123,6 @@ from fastapi.responses import StreamingResponse
from pydantic import BaseModel
from functools import lru_cache
now_dir = os.getcwd()
sys.path.append(now_dir)
sys.path.append("%s/GPT_SoVITS" % (now_dir))
cut_method_names = get_cut_method_names()
parser = argparse.ArgumentParser(description="GPT-SoVITS api")