microsoft / PodcastCopilot

Build 2023 demo
MIT License
646 stars 138 forks source link

Podcast Copilot

This code was demonstrated at the Build 2023 keynote by Microsoft CTO Kevin Scott, illustrating the architecture of a Copilot.

Kevin Scott hosts a podcast, Behind the Tech. This Podcast Copilot makes it easier to generate a social media post promoting a new episode of the podcast, when given the audio file for the podcast. The Podcast Copilot uses a series of machine learning models orchestrated by LangChain to do this:

Diagram of the data flow and chain of machine learning models described above

For the demo, we ran Whisper and Dolly 2 locally. The Bing Search Grounding API is available on Azure. We used model deployments of GPT-4, DALL-E 2, and a plugins-capable model on the Azure OpenAI service.

Please note that as of Build (May 2023):

Setup

This project requires creating an Azure OpenAI resource to run several cloud-based models.

You will also need to create a Bing search resource at https://portal.azure.com/#create/Microsoft.BingSearch.

Next, update the PodcastSocialMediaCopilot.py file with your settings.

Finally, set up your environment and run the code using the following commands:

pip install -r requirements.txt
python PodcastSocialMediaCopilot.py

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.