import streamlit as st from lanchain.llms import OpenAI def load_answer(query): llm =OpenAI(temperature =0.5) return llm(query) st.Header("Simple Q/A App") query =st.text_input() if query: st.write(load_answer(query))