rianders commited on
Commit
9c27d01
·
verified ·
1 Parent(s): f2e9400

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -10,10 +10,14 @@ from langchain.tools import tool
10
  # Load the OpenAI API key from the .env file
11
  load_dotenv()
12
 
 
 
 
13
  # Initialize the OpenAI client
14
  openai_client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
15
 
16
 
 
17
  # Define the custom tool for checking Streamlit documentation updates
18
  @tool
19
  def check_streamlit_updates(previous_hash: str) -> str:
 
10
  # Load the OpenAI API key from the .env file
11
  load_dotenv()
12
 
13
+ os.environ["OPENAI_API_KEY"]= userdata.get('OPENAI_API_KEY')
14
+ GITHUB_ACCESS_TOKEN = userdata.get('GITHUB_ACCESS_TOKEN')
15
+
16
  # Initialize the OpenAI client
17
  openai_client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
18
 
19
 
20
+
21
  # Define the custom tool for checking Streamlit documentation updates
22
  @tool
23
  def check_streamlit_updates(previous_hash: str) -> str: