Spaces:
Runtime error
Runtime error
fix: API Key error on HF (#12)
Browse files
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 |
-
|
|
|
|
| 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
|