maclenn77 commited on
Commit
0c0062a
·
unverified ·
1 Parent(s): 1936edf

fix: API Key error on HF (#12)

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -50,7 +50,8 @@ chroma_db = ChromaDB(openai.api_key)
50
  openai_client, collection = settings.build(chroma_db)
51
 
52
  # Create Agent
53
- llm = ChatOpenAI(temperature=0.9, model="gpt-3.5-turbo-16k", api_key=openai.api_key)
 
54
  agent = PDFExplainer(llm, chroma_db).agent
55
 
56
  # Main
 
50
  openai_client, collection = settings.build(chroma_db)
51
 
52
  # Create Agent
53
+ openai_api_key = openai.api_key
54
+ llm = ChatOpenAI(temperature=0.9, model="gpt-3.5-turbo-16k", api_key=openai_api_key)
55
  agent = PDFExplainer(llm, chroma_db).agent
56
 
57
  # Main