import os
from constants import openai_api_key
from langchain.llms import openai
import streamlit as st
from langchain_community.llms import openai
os.environ['OPENAI_API_KEY'] = openai_api_key
# streamlit framework
st.title('LangChain Demo With OPENAI API ')
input_text = st.text_input('Search the topic you want ')
## OPENAI LLMS
llm = openai(tempertaure=0.8)
if input_text:
st.write(llm(input_text))