In this exercise you'll be building a simple web app that allows to summarize and answer your emails! We'll be using the following technology:
- Python
- Streamlit library (web frontend)
- Azure OpenAI Service (summarization, answering)
Use streamlit to build a simple UI. First, follow the getting started guide.
Once you have that running, create a new Python file called email_app.py
and use the following components to build the UI:
- Create a title, a text area where you can enter an email, and two buttons ("Generate Summary" and "Generate Answer")
- Run the app via
streamlit run email_app.py
- Add fake functionality that when somebody presses one of the buttons, that the UI prints something
Once your app UI is running, add Azure OpenAI Service:
- Add Azure OpenAI Service to generate a summary
- Add Azure OpenAI Service to generate an answer