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

增设前端推理界面,并修改api_v2以进行适配。 #1681

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Svring
Copy link

@Svring Svring commented Oct 9, 2024

涉及到的文件包括api_v2.py, requirements.txt和新增的dist文件夹。

api_v2内新增了适配前端推理页面的代码,并且多引用了一个库:shutil,原有的功能应该不受影响。

requirements.txt内新增了对shutil的依赖声明。

dist内包含打包后的前端页面文件,在主流浏览器上运行应该没有问题,为了保持最大限度的前后端分离,目前的前端界面只能在默认端口9880下正常运行,后续应该会优化。

@XXXXRT666
Copy link
Contributor

pip install shutil会报错,他不是第三方库

@Svring
Copy link
Author

Svring commented Oct 10, 2024

pip install shutil会报错,他不是第三方库

OK,已经移除了对requirements.txt的修改。

return JSONResponse(status_code=500, content={"message": f"Error retrieving weights info", "error": str(e)})

@APP.post("/tts")
async def tts_post_endpoint(request: TTS_Request):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上面有个同名函数,是不是应该把那个删了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants