@romungi-MSFT The following link is the reference to download and import the necessary dependencies of the API responsible for performing batch transcriptions (https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/batch/python). However, outside the GitHub environment and the deployment of the app, local tests have been conducted with the installation of the following .WHL file (pip install path/swagger_client-1.0.0-py3-none-any.whl and import swagger_client as cris_client) that serves the same function as the API. With this setup, the project runs correctly.Let me know if you need anything else.
Deploy a Stremlit application on Azure Web App and swagger
Sierra Morales Sergio Felipe
20
Reputation points
I am deploying an application developed in Streamlit with Azure Web App via GitHub. The application is responsible for performing batch transcriptions, for which I use Swagger API. However, I have not been able to import it. When the application is deployed, I get the following error: "ModuleNotFoundError: No module named 'Swagger_client'". Currently, the swagger_client.whl file is hosted on GitHub, and the pip install is done in the workflow.yml. What alternatives do I have to solve the error? Thanks!
1 answer
Sort by: Most helpful
-
Sierra Morales Sergio Felipe 20 Reputation points
2024-03-08T20:35:36.5933333+00:00