Blog Outline Generator App built using Langchain and Streamlit.
- Accept user provided prompt as an input using Streamlit's
st.text_input()
- Create the final prompt by using
PromptTemplate()
to combine the "topic" and the prompt instructions. - The above prompt (from step 3) serves as an input to the OpenAI LLM model for generating a response (the blog outline)
You can get your own OpenAI API key by following the following instructions:
- Go to https://platform.openai.com/account/api-keys.
- Click on the
+ Create new secret key
button. - Next, enter an identifier name (optional) and click on the
Create secret key
button.
Once the app is loaded, go ahead and enter your OpenAI API key and type a question in the text box and wait for a generated response.