You will be combine two very heavy projects with a lot of dependencies. I could see you running into problem with transitive dependencies.
Check out this GUI for Torch. https://www.torchstudio.ai/
Or maybe a web normal Flask or FastAPI interface would be easier.