# Q&A Chatbot from langchain.llms import OpenAI from dotenv import load_dotenv import streamlit as st import os #function to load openai model and get response def get_openai_response(question): llm=OpenAI(temperature=0.6) response=llm(question) return response #initialize our streamlis app st.set_page_config(page_title="Q&A Demo") st.header("Langchain application") input=st.text_input("Input: ", key="input") response=get_openai_response(input) submit=st.button("Ask the question") #if ask button is clicked if submit: st.subheader("the Response is") st.write(response)