Atif20024 commited on
Commit
34bee21
·
verified ·
1 Parent(s): 6581e27

Update llm_functions.py

Browse files
Files changed (1) hide show
  1. llm_functions.py +2 -2
llm_functions.py CHANGED
@@ -5,8 +5,8 @@ from langchain.chains import LLMChain
5
  from langchain.memory import ConversationBufferMemory
6
  from langchain.chains import RetrievalQA
7
 
8
- import streamlit as st
9
- secrets = st.secrets["openai"]
10
 
11
  def get_conversational_chain():
12
  prompt_template = """You are an expert and polite HR.
 
5
  from langchain.memory import ConversationBufferMemory
6
  from langchain.chains import RetrievalQA
7
 
8
+ import os
9
+ api_key = os.getenv("OPENAI_API_KEY")
10
 
11
  def get_conversational_chain():
12
  prompt_template = """You are an expert and polite HR.