Skip to content

Commit

Permalink
fix: API Key error on HF (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maclenn77 authored Dec 9, 2023
1 parent 1936edf commit 0c0062a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def set_api_key():
openai_client, collection = settings.build(chroma_db)

# Create Agent
llm = ChatOpenAI(temperature=0.9, model="gpt-3.5-turbo-16k", api_key=openai.api_key)
openai_api_key = openai.api_key
llm = ChatOpenAI(temperature=0.9, model="gpt-3.5-turbo-16k", api_key=openai_api_key)
agent = PDFExplainer(llm, chroma_db).agent

# Main
Expand Down

0 comments on commit 0c0062a

Please sign in to comment.